git hash 00000000 in reelase.h when git is not found enabled again after some shell scripting fix that is now compatible with most shells

This commit is contained in:
antirez 2010-05-18 16:39:57 +02:00
parent 274e45e365
commit c7dadd1513
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
GIT_SHA1=$(git show-ref --head --hash=8 2> /dev/null | head -n1)
GIT_SHA1=$( (git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1)
GIT_DIRTY=$(git diff 2> /dev/null | wc -l)
test -f release.h || touch release.h
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \