aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-07-13 10:06:30 +0100
committerMike McQuaid2017-07-13 10:06:30 +0100
commit5709002138a1c6d6b1bf1d5ee74da21eb5aaae53 (patch)
treeb71958fc2afc4f3851f17b705083b2afc9bf4025 /Library/Homebrew
parent8d7f66e520038733282eb6ecc5c3fc4233b17a18 (diff)
downloadbrew-5709002138a1c6d6b1bf1d5ee74da21eb5aaae53.tar.bz2
brew.sh: always use 7 chars for HOMEBREW_VERSION.
This avoids inconsistency based on Git versions.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brew.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 97c3b7f86..638e9dc19 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -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"
if [[ -z "$HOMEBREW_VERSION" ]]
then