mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 09:19:25 +00:00
Replace git with 'command git' (#1551)
to improve performance if git is aliased to hub or other wrappers.
This commit is contained in:
committed by
Kaleb Elwert
parent
e00562e7cf
commit
b3c27bb164
@ -7,7 +7,7 @@
|
||||
|
||||
# function git-dir {
|
||||
|
||||
local git_dir="${$(git rev-parse --git-dir):A}"
|
||||
local git_dir="${$(command git rev-parse --git-dir):A}"
|
||||
|
||||
if [[ -n "$git_dir" ]]; then
|
||||
print "$git_dir"
|
||||
|
Reference in New Issue
Block a user