summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ed29ab08a..6437d956e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2008-08-29 Clint Adams <clint@zsh.org>
+ * Mikael Magnusson: 25539: Completion/Unix/Command/_git: more
+ 'git clone' fixes.
+
* Frank Terbeck: 25538: Completion/Unix/Command/_git: add missing
backslash.
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] )) ||