Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'dk/version-gen-gitdir'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Jun 2013 20:48:48 +0000
(13:48 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Jun 2013 20:48:49 +0000
(13:48 -0700)
Allow packaging a tarball in a working tree with $GIT_DIR set elsewhere.
* dk/version-gen-gitdir:
GIT-VERSION-GEN: support non-standard $GIT_DIR path
GIT-VERSION-GEN
patch
|
blob
|
history
raw
(from parent 1:
9a3f598
)
diff --git
a/GIT-VERSION-GEN
b/GIT-VERSION-GEN
index 390782fa124114e902d1d7ba254bb14323f943a1..b4d4e5045fc78173c77de6de3fb9330de49a9628 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) ;;