From d0057538d3a30f1abaddf00171888c5d3527a067 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 19 May 2015 06:35:26 +0200 Subject: 35204: fix broken __git_recent_commits from previous commit This fixes 1e7bb4a: newlines need to be kept (from the "%d" part). --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 6901b42e3..18d895469 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5676,7 +5676,7 @@ __git_recent_commits () { # Careful: most %d will expand to the empty string. Quote properly! # NOTE: we could use %D directly, but it's not available in git 1.9.1 at least. - commits=(${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"}) + commits=("${(f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"}") __git_command_successful $pipestatus || return 1 for i j k in "$commits[@]" ; do -- cgit 1.4.1