From 5709002138a1c6d6b1bf1d5ee74da21eb5aaae53 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Jul 2017 10:06:30 +0100 Subject: [PATCH] brew.sh: always use 7 chars for HOMEBREW_VERSION. This avoids inconsistency based on Git versions. --- Library/Homebrew/brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 97c3b7f86b..638e9dc19c 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