shims/scm/git: Fix the search for brewed git

Search for brewed git in both locations:
$HOMEBREW_PREFIX/Homebrew/Library/Homebrew/shims/scm/../../../../../bin/git
$HOMEBREW_PREFIX/Library/Homebrew/shims/scm/../../../../bin/git
This commit is contained in:
Shaun Jackman 2017-12-20 16:23:02 -08:00
parent 426c998ff5
commit 5c7d2d0bb5

View File

@ -92,6 +92,9 @@ case "$(lowercase "$SCM_FILE")" in
;;
esac
brew_version="$(quiet_safe_cd "$SCM_DIR/../../../../../bin" && pwd -P)/$SCM_FILE"
safe_exec "$brew_version" "$@"
brew_version="$(quiet_safe_cd "$SCM_DIR/../../../../bin" && pwd -P)/$SCM_FILE"
safe_exec "$brew_version" "$@"