aboutsummaryrefslogtreecommitdiffstats
path: root/git-version-gen
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 22:04:46 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-27 17:40:52 +0200
commitb6ccee113ceb57fc5c5a15ac163fa9aa87a54162 (patch)
treef89966cc19df5b9ff643fe9466d1ed964d59677c /git-version-gen
parentb0fb72c2f9292239b88f6566db65b91e0fadeff9 (diff)
git-version-gen: look for .git in ./, not ../
Diffstat (limited to 'git-version-gen')
-rwxr-xr-xgit-version-gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-version-gen b/git-version-gen
index f2ad4a76..8e59c5af 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