Pick the first git in case there are multiple

This commit is contained in:
Yan Pritzker
2012-11-13 10:27:57 -06:00
parent 992b1866b2
commit 480045e5a4

View File

@@ -13,7 +13,7 @@ disable_nullglob() { if [ $shell = "zsh" ]; then unsetopt NULL_GLOB; else shopt
_alias(){ alias "$@" 2> /dev/null; } _alias(){ alias "$@" 2> /dev/null; }
if [ $shell = "zsh" ]; then if [ $shell = "zsh" ]; then
export GIT_BINARY=$(type -p git | sed 's/git is //') export GIT_BINARY=$(type -p git | sed 's/git is //' | head -1)
else else
export GIT_BINARY=$(type -P git) export GIT_BINARY=$(type -P git)
fi fi