tree-diff: remove special-case diff-emitting code for empty-tree cases
[gitweb.git] / GIT-VERSION-GEN
index f7ec14ad92da1c25274bd8e65033c6eeb21137e9..38b939b6362784234d968967fced7682f0b81d02 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v1.8.2.3
+DEF_VER=v1.9-rc2
 
 LF='
 '
@@ -11,7 +11,7 @@ LF='
 if test -f version
 then
        VN=$(cat version) || VN="$DEF_VER"
-elif test -d .git -o -f .git &&
+elif test -d ${GIT_DIR:-.git} -o -f .git &&
        VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
        case "$VN" in
        *$LF*) (exit 1) ;;