brew.sh: update no git repository message.
Clarify that this message doesn’t only trigger when there’s no Git repository but also when there’s no tags that `git describe` can use.
This commit is contained in:
parent
064c52efc4
commit
df7fb212c2
@ -23,7 +23,7 @@ HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty --abbr
|
||||
HOMEBREW_USER_AGENT_VERSION="$HOMEBREW_VERSION"
|
||||
if [[ -z "$HOMEBREW_VERSION" ]]
|
||||
then
|
||||
HOMEBREW_VERSION=">1.2.0 (no git repository)"
|
||||
HOMEBREW_VERSION=">1.2.0 (shallow or no git repository)"
|
||||
HOMEBREW_USER_AGENT_VERSION="1.X.Y"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user