summaryrefslogtreecommitdiff
path: root/update_version
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2013-10-01 13:05:33 -0700
committerRalph Giles <giles@mozilla.com>2013-10-01 13:05:33 -0700
commitc435f06b308e52d7a5d2aad9eec98a1541832b47 (patch)
tree5f7c9892f8e07d7a4faae48923aef8300434c5ef /update_version
parenta32fa319d3e300d80df648e7edb2157b599003ab (diff)
downloadopus-c435f06b308e52d7a5d2aad9eec98a1541832b47.tar.gz
Pass --always to git describe.
This generates a useful version string even for --depth=1 checkouts. The option was added in git v1.6.6.
Diffstat (limited to 'update_version')
-rwxr-xr-xupdate_version3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_version b/update_version
index a9999918..6086136d 100755
--- a/update_version
+++ b/update_version
@@ -34,7 +34,8 @@ fi
# -dirty from files that have been touched but are not actually altered in the
# working dir.
GIT_VERSION=$(cd "$SRCDIR" && git status > /dev/null 2>&1 \
- && git describe --tags --match 'v*' --dirty 2> /dev/null)
+ && git describe --tags --match 'v*' \
+ --always --dirty 2> /dev/null)
GIT_VERSION=${GIT_VERSION#v}
if [ -n "$GIT_VERSION" ]; then