summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-version2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get-version b/scripts/get-version
index eb93a3322..27f02f640 100755
--- a/scripts/get-version
+++ b/scripts/get-version
@@ -19,7 +19,7 @@ if [ $# -eq 2 ] && [ "$2" ]; then
v0=$2
else
cmd="git describe --tags --abbrev=12"
- v0=$($cmd) || croak "odd; command '$cmd' failed"
+ v0=$($cmd) || v0=$(cat .gitversion) || croak "odd; command '$cmd' failed"
fi
# strip off the 'v' prefix, if any