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

Change-Id: Ic71cfb8dde0a43325b50c75aae1e6ef3c3008501
This commit is contained in:
Neels Hofmeyr 2017-07-12 22:04:46 +02:00
parent c00d016e20
commit 14ce472225
1 changed files with 1 additions and 1 deletions

View File

@ -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