summaryrefslogtreecommitdiffstats
path: root/git-version-gen
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-28 18:13:03 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-28 18:20:00 +0200
commit94ae40aae6917560977a28062a60d4303e1b201e (patch)
treef2b9e8fab6c9c2474155cffa8a73db1dee0ba178 /git-version-gen
parent4abdb313e3989557cd7dc546da59db8ac2180422 (diff)
Fix git-version-gen
It seems we didn't import a proper/clean git-version-gen into the repository. Let's fix this. Change-Id: I5132d10b3ed5a75e562cdd74db02eda68d828a08
Diffstat (limited to 'git-version-gen')
-rwxr-xr-xgit-version-gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-version-gen b/git-version-gen
index f2ad4a7..42cf3d2 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -92,8 +92,8 @@ fi
if test -n "$v"
then
: # use $v
-elif test -d ./../.git \
- && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
+elif
+ v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
|| git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in
[0-9]*) ;;