From 11c84df6340a372493cb7b2b737a2911107c03ab Mon Sep 17 00:00:00 2001 From: Aki Tuomi <aki.tuomi@open-xchange.com> Date: Tue, 2 May 2023 10:56:45 +0300 Subject: [PATCH] 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. --- build-aux/git-abi-version-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/git-abi-version-gen b/build-aux/git-abi-version-gen index 3d96b2a19..bf47a766f 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 -- GitLab