1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 03:59:25 +00:00

Replace 'git' with 'command git'

This prevents performance loss when git is aliased to hub.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
Timo Derstappen
2014-07-13 12:36:15 +02:00
committed by Sorin Ionescu
parent 9d97ee57a3
commit 729fd07ab0
17 changed files with 55 additions and 55 deletions

View File

@ -8,7 +8,7 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then
return 1
fi
@ -18,7 +18,7 @@ local submodule
while IFS=$'\n' read submodule; do
submodules+=("$submodule")
done < <(
git config --file "$(git-root)/.gitmodules" --list \
command git config --file "$(git-root)/.gitmodules" --list \
| grep '.path=' \
| cut -d= -f2-
)