Merge pull request #1090 from MikeMcQuaid/brew-version-repository

brew.sh: fix brew --version outside HOMEBREW_REPOSITORY.
This commit is contained in:
Dominyk Tiller 2016-09-23 03:56:13 +01:00 committed by GitHub
commit d3a2934d8b

View File

@ -1,4 +1,4 @@
HOMEBREW_VERSION="$(git describe --tags --dirty 2>/dev/null)" HOMEBREW_VERSION="$(GIT_DIR="$HOMEBREW_REPOSITORY/.git" git describe --tags --dirty 2>/dev/null)"
if [[ -z "$HOMEBREW_VERSION" ]] if [[ -z "$HOMEBREW_VERSION" ]]
then then
HOMEBREW_VERSION=">1.0.0 (no git repository)" HOMEBREW_VERSION=">1.0.0 (no git repository)"