Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Completion/Unix/Command/_git
Original file line number Diff line number Diff line change
Expand Up @@ -7099,7 +7099,7 @@ __git_remote_branch_names () {
__git_remote_branch_names_noprefix () {
declare -a heads

branch_names=(${${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}#refs/remotes/}#*/}:#HEAD})
local branch_names=(${${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}#refs/remotes/}#*/}:#HEAD})
__git_command_successful $pipestatus || return 1

__git_describe_commit branch_names remote-branch-names-noprefix 'remote branch name' "$@"
Expand Down
2 changes: 1 addition & 1 deletion Completion/Unix/Command/_ssh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# TODO: sshd, ssh-keysign

_ssh () {
local curcontext="$curcontext" state line expl suf arg ret=1
local curcontext="$curcontext" state line lstate expl suf arg ret=1
local args sigargs common common_transfer options algopt tmp p1 file cmn cmds sdesc tdesc
typeset -A opt_args tsizes

Expand Down
2 changes: 1 addition & 1 deletion Completion/Unix/Type/_hosts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if ! zstyle -a ":completion:${curcontext}:hosts" hosts _hosts; then

for khostfile in $khostfiles; do
if [[ -r $khostfile ]]; then
khosts=(${(s/,/j/,/u)${(f)"$(<$khostfile)"}%%[ |#]*})
local khosts=(${(s/,/j/,/u)${(f)"$(<$khostfile)"}%%[ |#]*})

# known_hosts syntax supports the host being in the form [hostname]:port
# The filter below extracts the hostname from lines using this format.
Expand Down