update.sh: fix Git path.
Closes https://github.com/Homebrew/brew/issues/519 Closes https://github.com/Homebrew/homebrew-core/issues/3029
This commit is contained in:
parent
a07ab8bb92
commit
0d0519d48d
@ -14,7 +14,7 @@ source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
|
|||||||
git() {
|
git() {
|
||||||
if [[ -z "$GIT_EXECUTABLE" ]]
|
if [[ -z "$GIT_EXECUTABLE" ]]
|
||||||
then
|
then
|
||||||
GIT_EXECUTABLE="$("$HOMEBREW_LIBRARY/Homebrew/scm/git" --homebrew=print-path)"
|
GIT_EXECUTABLE="$("$HOMEBREW_LIBRARY/Homebrew/shims/scm/git" --homebrew=print-path)"
|
||||||
fi
|
fi
|
||||||
"$GIT_EXECUTABLE" "$@"
|
"$GIT_EXECUTABLE" "$@"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user