Browse Source

Merge branch 'dk/version-gen-gitdir' into maint

* dk/version-gen-gitdir:
  GIT-VERSION-GEN: support non-standard $GIT_DIR path
maint
Junio C Hamano 12 years ago
parent
commit
25b3e4fffd
  1. 2
      GIT-VERSION-GEN

2
GIT-VERSION-GEN

@ -11,7 +11,7 @@ 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) ;;

Loading…
Cancel
Save