Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
GIT-VERSION-GEN: support non-standard $GIT_DIR path
[gitweb.git]
/
GIT-VERSION-GEN
diff --git
a/GIT-VERSION-GEN
b/GIT-VERSION-GEN
index 2908204894c33111075ad6b8c4b56bcacec08131..91ec831b0e5e5923bbc43b4900ed3f283ce67ff1 100755
(executable)
--- a/
GIT-VERSION-GEN
+++ b/
GIT-VERSION-GEN
@@
-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) ;;