When pulseaudio is a submodule, .git is a file. Signed-off-by: Anton Lundin <glance at acc.umu.se> --- git-version-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-version-gen b/git-version-gen index 9d65b80..724da66 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 -- 1.8.1.2