From: Aki Tuomi Date: Tue, 2 May 2023 07:55:36 +0000 (+0300) Subject: build-aux/git-abi-version-gen: Allow .git to just exist X-Git-Tag: 2.4.0~2775 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6e12e1a9a17541cea6017d43e474354ca57a1ee;p=thirdparty%2Fdovecot%2Fcore.git build-aux/git-abi-version-gen: Allow .git to just exist 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. --- diff --git a/build-aux/git-abi-version-gen b/build-aux/git-abi-version-gen index 3d96b2a19e..bf47a766f7 100755 --- a/build-aux/git-abi-version-gen +++ b/build-aux/git-abi-version-gen @@ -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