summaryrefslogtreecommitdiff
path: root/git-version-gen
diff options
context:
space:
mode:
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 9d65b8009..724da666e 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -105,7 +105,7 @@ fi
if test -n "$v"
then
: # use $v
-elif test -d .git \
+elif test -e .git \
&& v=`git describe --abbrev=4 --match='v[0-9]*' HEAD 2>/dev/null` \
&& [ -n "$v" ]
then