auto-version.in: Don't insist that `.git' is a directory.
[cfd] / auto-version.in
index c9b1e27..d229a29 100755 (executable)
@@ -71,7 +71,7 @@ fi
 ### Main program.
 
 ## If this is a Git checkout then Git should be able to identify the version.
-if [ -d .git ] && version=$(git describe --abbrev=4 2>/dev/null); then
+if [ -e .git ] && version=$(git describe --abbrev=4 2>/dev/null); then
 
   ## If the working tree is dirty, indicate with a `+'.
   case "$(git diff-index --name-only HEAD)" in