about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d548eefae..44d897154 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-08-31  Clint Adams  <clint@zsh.org>
 
+	* Frank Terbeck: 25561: Completion/Unix/Command/_git: fix quoting
+	with aliases.
+
 	* Mikael Magnusson: 25564: Completion/Unix/Command/_git:
 	suppress error output in __git_is_treeish.
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 1ec948047..ae33de0fd 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -4290,7 +4290,7 @@ if (( CURRENT >= 3 )) && [[ -n ${git_aliases[$words[2]]} ]] ; then
   if [[ -z "${words[3,-1]}" ]] ; then
       tmpwords[$(( ${#tmpwords} + 1 ))]=""
   else
-      tmpwords+=("${words[3,-1]}")
+      tmpwords+=(${words[3,-1]})
   fi
   words=("${tmpwords[@]}")
   (( CURRENT += ${#${(z)git_aliases[$words[2]]}} - 1 ))