From a53cd5eacbcb326b9ba2c0eb4fa89da39c68ed62 Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Tue, 7 Oct 2025 16:48:42 -0400 Subject: github #147: Clean up some leaked variables in completion functions --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_git') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 7600ccb9c..1bede1e69 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -7181,7 +7181,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' "$@" -- cgit v1.2.3-70-g09d2