1
0
Fork 0

git rev-parse replacing __gitdir call

master
Mike Gerwitz 2014-11-23 22:43:17 -05:00
parent fb3577e7cb
commit 7289ae3a63
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ __git-short_shortmap()
local -r shortcmd="$1"
# only perform completion when within a git dir
__gitdir >/dev/null || return
git rev-parse &>/dev/null || return
# populate variables used by various git completion functions
local cur words cword prev
@ -81,7 +81,7 @@ __git-short_shortalias()
# if we're not within a git dir, fall back to an actual command of this
# name
__gitdir >/dev/null || {
git rev-parse &>/dev/null || {
command "$shortcmd" "$@"
return
}