Escape \which just in case someone else overrides it with an alias :)
This commit is contained in:
@@ -12,7 +12,7 @@ unalias git > /dev/null 2>&1
|
|||||||
unset -f git > /dev/null 2>&1
|
unset -f git > /dev/null 2>&1
|
||||||
|
|
||||||
# Use the full path to git to avoid infinite loop with git function
|
# Use the full path to git to avoid infinite loop with git function
|
||||||
export _git_cmd="$(which git)"
|
export _git_cmd="$(\which git)"
|
||||||
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
|
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
|
||||||
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
|
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user