git-version-gen: look for .git in ./, not ../

Change-Id: Ic71cfb8dde0a43325b50c75aae1e6ef3c3008501
changes/90/3190/3
Neels Hofmeyr 6 years ago
parent c00d016e20
commit 14ce472225
  1. 2
      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

Loading…
Cancel
Save