brew.sh: always use 7 chars for HOMEBREW_VERSION.

This avoids inconsistency based on Git versions.
This commit is contained in:
Mike McQuaid 2017-07-13 10:06:30 +01:00
parent 8d7f66e520
commit 5709002138

View File

@ -1,4 +1,4 @@
HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty 2>/dev/null)" HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty --abbrev=7 2>/dev/null)"
HOMEBREW_USER_AGENT_VERSION="$HOMEBREW_VERSION" HOMEBREW_USER_AGENT_VERSION="$HOMEBREW_VERSION"
if [[ -z "$HOMEBREW_VERSION" ]] if [[ -z "$HOMEBREW_VERSION" ]]
then then