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.
parent 33a848f0
......@@ -34,8 +34,7 @@ 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*' \
--always --dirty 2> /dev/null)
&& git describe --tags --match 'v*' --dirty 2> /dev/null)
if [ -n "$GIT_VERSION" ]; then
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment