summaryrefslogtreecommitdiff
path: root/git-version-gen
diff options
context:
space:
mode:
authorAnton Lundin <glance@acc.umu.se>2013-09-18 16:20:42 +0200
committerArun Raghavan <arun.raghavan@collabora.co.uk>2013-09-28 09:27:30 +0530
commit55f4b771c74b7b4035b0264fd58cd18a1a82d4b2 (patch)
tree9860b4c43301fc9a4239090bcf6a4dfe4c86586b /git-version-gen
parent9de7519d162230b11fa71903d261acb15c5c3eb8 (diff)
build-sys: Support building pulseaudio as a submodule
When pulseaudio is a submodule, .git is a file. Signed-off-by: Anton Lundin <glance@acc.umu.se>
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