ref: 5aecfedfb1290d4272e53cf12405cbc5b68f0ffe
parent: 33a848f09e2026ab03fffe9e3e78b17e3b37454a
author: Mark Harris <mark.hsj@gmail.com>
date: Sun Jan 22 08:02:45 EST 2017
update_version: Drop --always from git describe The package_version file will be used if there are no tags, which is better than just the hash that is returned by --always.
--- a/update_version
+++ b/update_version
@@ -34,8 +34,7 @@
# -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*' \
- --always --dirty 2> /dev/null)
+ && git describe --tags --match 'v*' --dirty 2> /dev/null)
GIT_VERSION=${GIT_VERSION#v}
if [ -n "$GIT_VERSION" ]; then