From db7e9004b3f42e93ed27c9306d7b6067b4d877a5 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Tue, 17 Sep 2013 10:51:50 +0930 Subject: [PATCH] Fix bug in version_string.sh git describe --dirty does not accept HEAD (committish) arg --- version_string.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version_string.sh b/version_string.sh index 3a72bc4f..15e07ae6 100755 --- a/version_string.sh +++ b/version_string.sh @@ -109,7 +109,7 @@ if [ -n "$dirty" ] && ! $allow_modified; then fi # Use the "git describe" command to form the version string. -if error="$(git describe --match="$version_tag_glob" "${dirty:+--dirty=$dirty}" HEAD 2>&1 1>&5)" 5>&1; then +if error="$(git describe --match="$version_tag_glob" "${dirty:+--dirty=$dirty}" 2>&1 1>&5)" 5>&1; then exit 0 fi