projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.13.6
[platform/upstream/git.git]
/
GIT-VERSION-GEN
diff --git
a/GIT-VERSION-GEN
b/GIT-VERSION-GEN
index
46595da
..
3db6830
100755
(executable)
--- a/
GIT-VERSION-GEN
+++ b/
GIT-VERSION-GEN
@@
-1,7
+1,7
@@
#!/bin/sh
GVF=GIT-VERSION-FILE
#!/bin/sh
GVF=GIT-VERSION-FILE
-DEF_VER=v2.
8.1
+DEF_VER=v2.
13.6
LF='
'
LF='
'
@@
-12,7
+12,7
@@
if test -f version
then
VN=$(cat version) || VN="$DEF_VER"
elif test -d ${GIT_DIR:-.git} -o -f .git &&
then
VN=$(cat version) || VN="$DEF_VER"
elif test -d ${GIT_DIR:-.git} -o -f .git &&
- VN=$(git describe --match "v[0-9]*"
--abbrev=7
HEAD 2>/dev/null) &&
+ VN=$(git describe --match "v[0-9]*" HEAD 2>/dev/null) &&
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)