Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'dk/version-gen-gitdir' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Jul 2013 05:51:41 +0000
(22:51 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Jul 2013 05:51:41 +0000
(22:51 -0700)
* dk/version-gen-gitdir:
GIT-VERSION-GEN: support non-standard $GIT_DIR path
1
2
GIT-VERSION-GEN
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
compact
(merge:
b6538a0
05a9506
)
diff --combined
GIT-VERSION-GEN
index 8ddaa16ac1ee8936cde50a75e30905c62d0709d7,91ec831b0e5e5923bbc43b4900ed3f283ce67ff1..b8b8457735669f2acc6adcf9271c482ef713ad0f
---
1
/
GIT-VERSION-GEN
---
2
/
GIT-VERSION-GEN
+++ b/
GIT-VERSION-GEN
@@@
-1,7
-1,7
+1,7
@@@
#!/bin/sh
GVF=GIT-VERSION-FILE
-DEF_VER=v1.8.
1.6
+DEF_VER=v1.8.
3.3
LF='
'
@@@
-11,7
-11,7
+11,7
@@@
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) ;;