brew.sh: change directory for HOMEBREW_VERSION.
This stops `-dirty` showing up whenever you aren't in `HOMEBREW_REPOSITORY`. Fixes #1108.
This commit is contained in:
parent
8724e11a6b
commit
2d804ae436
@ -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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user