Merge pull request #1090 from MikeMcQuaid/brew-version-repository
brew.sh: fix brew --version outside HOMEBREW_REPOSITORY.
This commit is contained in:
commit
d3a2934d8b
@ -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)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user