shithub: opusfile

Download patch

ref: 8638d78c76ab7689666ccacb615d1ac399961f2d
parent: 779ea4dafdf5cdbd3b0cf2bd36c1e6070a18ad39
author: Ralph Giles <giles@mozilla.com>
date: Tue Oct 1 10:44:29 EDT 2013

Pass --always to 'git describe'.

This provides a fallback commit id if no tags are available,
for example when doing a shallow clone.

--- a/update_version
+++ b/update_version
@@ -34,7 +34,8 @@
 # -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