On Sun, Apr 19, 2009 at 07:49:16PM +0300, Kalle Olavi Niemitalo wrote:
> _git-write-tree:3: command not found: --prefix=-[write tree representing 
> given sub-directory]:sub-directory:_directories -r ""
> --missing-ok
> 
> Likewise, type "git send-pack " and press TAB.  Error message:
> 
> _git-send-pack:3: command not found: --all[update all refs that exist locally]
> --
> 
> Both bugs are caused by missing backslashes in the completion
> script.  The fix is trivial (presumably also for copyright
> purposes):

Thanks.


Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.119
diff -u -r1.119 _git
--- Completion/Unix/Command/_git        4 Apr 2009 14:53:02 -0000       1.119
+++ Completion/Unix/Command/_git        20 Apr 2009 03:05:56 -0000
@@ -753,7 +753,7 @@
 (( $+functions[_git-write-tree] )) ||
 _git-write-tree () {
   _arguments \
-    '--missing-ok[ignore objects in the index that are missing in the object 
database]'
+    '--missing-ok[ignore objects in the index that are missing in the object 
database]' \
     '--prefix=-[write tree representing given 
sub-directory]:sub-directory:_directories -r ""' && ret=0
 }
 
@@ -1282,7 +1282,7 @@
 (( $+functions[_git-send-pack] )) ||
 _git-send-pack () {
   _arguments \
-    '(--receive-pack --exec)'{--receive-pack=-,--exec=-}'[specify path to 
git-receive-pack on remote side]:remote path'
+    '(--receive-pack --exec)'{--receive-pack=-,--exec=-}'[specify path to 
git-receive-pack on remote side]:remote path' \
     '--all[update all refs that exist locally]' \
     '--force[update remote orphaned refs]' \
     $verbose_arg \



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to