Skip to content
Snippets Groups Projects
Commit d3a2934d authored by Dominyk Tiller's avatar Dominyk Tiller Committed by GitHub
Browse files

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

brew.sh: fix brew --version outside HOMEBREW_REPOSITORY.
parents 559cea7f 5af52410
No related branches found
No related tags found
No related merge requests found
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" ]]
then
HOMEBREW_VERSION=">1.0.0 (no git repository)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment