summary refs log tree commit diff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-08-29 02:39:21 +0000
committerClint Adams <clint@users.sourceforge.net>2008-08-29 02:39:21 +0000
commit7ce0886cb32030283a44233173b6acadd1c43666 (patch)
tree316eaf46bf358dc9b111366d0d1c45b50e8a7244 /Completion/Unix/Command/_git
parent85c028bd25dd7ffb85a7ce4429a4ec4ec713b4e3 (diff)
downloadzsh-7ce0886cb32030283a44233173b6acadd1c43666.tar.gz
zsh-7ce0886cb32030283a44233173b6acadd1c43666.tar.xz
zsh-7ce0886cb32030283a44233173b6acadd1c43666.zip
Mikael Magnusson: 25539: more 'git clone' fixes.
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 09ffdb5a5..0941d3919 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1610,9 +1610,9 @@ _git-clean () {
 # TODO: The --no-checkout is undocumented.
 (( $+functions[_git-clone] )) ||
 _git-clone () {
-
-  _arguments \
+  _arguments -S \
     '--bare[make a bare GIT repository]' \
+    '--mirror[clone refs into refs/* instead of refs/remotes/origin/*]' \
     '(-l --local)'{-l,--local}'[perform a local cloning of a repository]' \
     '(-s --shared)'{-s,--shared}'[share the objects with the source repository (warning: see man page)]' \
     '--reference[reference repository]:repository:_directories' \
@@ -1624,7 +1624,7 @@ _git-clone () {
     $template_arg \
     '--depth[create a shallow clone, given number of revisions deep]: :_guard "[[\:digit\:]]##" depth' \
     ':repository:__git_any_repositories' \
-    '*:directory:_directories' && ret=0
+    ':directory:_directories' && ret=0
 }
 
 (( $+functions[_git-commit] )) ||