Skip to content

Commit

Permalink
Merge branch 'dk/version-gen-gitdir' into maint
Browse files Browse the repository at this point in the history
* dk/version-gen-gitdir:
  GIT-VERSION-GEN: support non-standard $GIT_DIR path
  • Loading branch information
Junio C Hamano committed Jul 22, 2013
2 parents b6538a0 + 05a9506 commit 25b3e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;;
Expand Down

0 comments on commit 25b3e4f

Please sign in to comment.