Fix bug in version_string.sh

git describe --dirty does not accept HEAD (committish) arg
This commit is contained in:
Andrew Bettison 2013-09-17 10:51:50 +09:30
parent 987875969c
commit db7e9004b3

View File

@ -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