diff options
| author | Mike McQuaid | 2016-09-24 16:05:18 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2016-09-24 16:05:20 +0100 | 
| commit | 2d804ae43661ee1ef608b0d0ac1a3fd68ac124f5 (patch) | |
| tree | 38b8e776a622be036db0b0f251814e18a9bd19cf /Library/Homebrew | |
| parent | 8724e11a6b5805dffee7133526bf5457c0a5d02a (diff) | |
| download | brew-2d804ae43661ee1ef608b0d0ac1a3fd68ac124f5.tar.bz2 | |
brew.sh: change directory for HOMEBREW_VERSION.
This stops `-dirty` showing up whenever you aren't in
`HOMEBREW_REPOSITORY`.
Fixes #1108.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/brew.sh | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index d2c821972..22ebb87ed 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -1,4 +1,4 @@ -HOMEBREW_VERSION="$(GIT_DIR="$HOMEBREW_REPOSITORY/.git" git describe --tags --dirty 2>/dev/null)" +HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty 2>/dev/null)"  if [[ -z "$HOMEBREW_VERSION" ]]  then    HOMEBREW_VERSION=">1.0.0 (no git repository)"  | 
