From: Heiko Schlittermann (HS12-RIPE) Date: Sat, 27 Jan 2018 21:58:03 +0000 (+0100) Subject: Build: .git may be a file when this repo is a submodule X-Git-Tag: exim-4_91_RC1~86 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/48dad213d10c1280139f70c1364cc68344bb2bb1 Build: .git may be a file when this repo is a submodule (cherry picked from commit 2dfd20fe244da439b1f6becb4e29c8cb83e2d399) --- diff --git a/src/scripts/reversion b/src/scripts/reversion index c82d9c0ac..00fc028b5 100755 --- a/src/scripts/reversion +++ b/src/scripts/reversion @@ -37,7 +37,7 @@ fi # If this tree is a git working directory, use that to get version information. -if [ -d ../../.git ] || [ "$1" = "release" ] +if [ -d ../../.git ] || [ -f ../../.git ] || [ "$1" = "release" ] then # Modify the output of git describe into separate parts for # the name "exim" and the release and variant versions.