X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/d9b245f4db6df803b96b8431a660ba14078ec6bd..c4ce4a8e7575dada4621abc1d47d73fe87f38913:/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