summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-03 15:08:43 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-03 15:08:43 +0200
commit365af78578b0211352c4278991d5fa17728cd692 (patch)
treed1996fff5d484624152c606a2e02f666fccbf24c
parent61307dafb88cc1a4e72dc955f38052f68e574f6d (diff)
fix git-version-gen to find .git directory0.0.2
-rwxr-xr-xgit-version-gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-version-gen b/git-version-gen
index f2ad4a7..8e59c5a 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -92,7 +92,7 @@ fi
if test -n "$v"
then
: # use $v
-elif test -d ./../.git \
+elif test -d ./.git \
&& v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
|| git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in