diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-08-18 22:47:44 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-08-18 22:47:44 +0000 |
commit | 51ba8a4faf17650bc3136e74d7221414dc1e27f9 (patch) | |
tree | 7c09a85292737fe45fc0ab58a1da285f4e9e5cdc | |
parent | 51460525c0807670fbd22b7c30dccb75eb262de9 (diff) | |
download | zsh-51ba8a4faf17650bc3136e74d7221414dc1e27f9.tar.gz zsh-51ba8a4faf17650bc3136e74d7221414dc1e27f9.tar.xz zsh-51ba8a4faf17650bc3136e74d7221414dc1e27f9.zip |
25480: add more quotes to the three _call_program invocations with git for-each-ref.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 0529f68fd..5cfd009c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-08-18 Clint Adams <clint@zsh.org> + * 25480: Completion/Unix/Command/_git: add more quotes to the + three _call_program invocations with git for-each-ref. + * Mikael Magnusson: 25473: Completion/Unix/Command/_git: add missing parenthesis. diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index c6952a4c4..9236e0b1a 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -2972,7 +2972,7 @@ __git_heads () { local expl declare -a branch_names - branch_names=(${${(f)"$(_call_program headrefs git for-each-ref --format='%(refname)' refs/heads refs/remotes 2>/dev/null)"}#refs/(heads|remotes)/}) + branch_names=(${${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname)"' refs/heads refs/remotes 2>/dev/null)"}#refs/(heads|remotes)/}) __git_command_successful || return _wanted heads expl branch-name compadd $* - $branch_names HEAD @@ -2983,7 +2983,7 @@ __git_tags () { local expl declare -a tag_names - tag_names=(${${(f)"$(_call_program tagrefs git for-each-ref --format='%(refname)' refs/tags 2>/dev/null)"}#refs/tags/}) + tag_names=(${${(f)"$(_call_program tagrefs git for-each-ref --format='"%(refname)"' refs/tags 2>/dev/null)"}#refs/tags/}) __git_command_successful || return _wanted tags expl tag-name compadd $* - $tag_names @@ -3036,7 +3036,7 @@ __git_branch_names () { local expl declare -a branch_names - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='%(refname)' refs/heads 2>/dev/null)"}#refs/heads/}) + branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/}) __git_command_successful || return _wanted branch-names expl branch-name compadd $* - $branch_names |