From 7929dd8cbaa195311375712ebb12b85296783f58 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 11 Apr 2015 10:13:55 +0000 Subject: 34885: completion: git: Fix another instance of the 34671 bug fixed in 34814 --- Completion/Unix/Command/_git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index b11c83c67..365482c0b 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5634,7 +5634,9 @@ __git_commit_objects () { local gitdir expl start declare -a commits - : ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:%s')"}} + # Note: the after-the-colon part must be unique across the entire array; + # see workers/34768 + : ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:\\\[%h\\\]\ %s')"}} __git_command_successful $pipestatus || return 1 _describe -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name' -- cgit 1.4.1