X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/d7015c990ea48349e702dcf8b545545c0c1c7797..399c828727e81f39fc7c4139f68dd8044e0a2b04:/auto-version.in diff --git a/auto-version.in b/auto-version.in index c9b1e27..d229a29 100755 --- a/auto-version.in +++ b/auto-version.in @@ -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