mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 22:51:42 +02:00
_git: Fix an apparent typo in __git_heads().
I couldn't reproduce different behaviour with and without this patch, although the called command's output differs.
This commit is contained in:
parent
3e26848ef4
commit
c57d8dfcaa
1 changed files with 2 additions and 2 deletions
|
@ -5646,7 +5646,7 @@ __git_heads_local () {
|
||||||
local gitdir
|
local gitdir
|
||||||
declare -a heads
|
declare -a heads
|
||||||
|
|
||||||
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)" refs/heads' 2>/dev/null)"})
|
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)"' refs/heads 2>/dev/null)"})
|
||||||
gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
|
gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
|
||||||
if __git_command_successful $pipestatus; then
|
if __git_command_successful $pipestatus; then
|
||||||
for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
|
for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
|
||||||
|
@ -5663,7 +5663,7 @@ __git_heads_local () {
|
||||||
__git_heads_remote () {
|
__git_heads_remote () {
|
||||||
declare -a heads
|
declare -a heads
|
||||||
|
|
||||||
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)" refs/remotes' 2>/dev/null)"})
|
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)"' refs/remotes 2>/dev/null)"})
|
||||||
|
|
||||||
__git_describe_commit heads heads-remote "remote head" "$@"
|
__git_describe_commit heads heads-remote "remote head" "$@"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue