]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
build-aux/git-abi-version-gen: Allow .git to just exist
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 2 May 2023 07:55:36 +0000 (10:55 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 2 May 2023 12:26:59 +0000 (12:26 +0000)
Fixes compatibility with monolith.

.git can also be a file, pointing to an external location
for the actual git repository. This usually happens when
code is a subrepository.

build-aux/git-abi-version-gen

index 3d96b2a19ed54abfda2230aab57e8ac070fc5d96..bf47a766f7828f8a4b77074dd4a5b378ac882e3a 100755 (executable)
@@ -29,7 +29,7 @@ if test "${VERSION:-}" != ""; then
   :
 elif test -f version; then
   VERSION="`cat version`"
-else test -d .git;
+else test -e .git;
   VERSION="0.0.0"
 fi