summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-04-29 08:59:25 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-05-01 01:52:28 +0000
commitc57d8dfcaa40a8bbf8c38f2a2accc1a7e8090b69 (patch)
tree4af5d9a9aef2ef19128240f1f247f2d6923f6c84 /Completion/Unix/Command/_git
parent3e26848ef4e1a9dfd1893dca1646086dfcad9f6d (diff)
downloadzsh-c57d8dfcaa40a8bbf8c38f2a2accc1a7e8090b69.tar.gz
zsh-c57d8dfcaa40a8bbf8c38f2a2accc1a7e8090b69.zip
_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.
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index d7b874a90..15829021d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5646,7 +5646,7 @@ __git_heads_local () {
local gitdir
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)
if __git_command_successful $pipestatus; then
for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
@@ -5663,7 +5663,7 @@ __git_heads_local () {
__git_heads_remote () {
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" "$@"
}