about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a7f6aa35..f385ac3ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,11 @@
 	* 35204: Completion/Unix/Command/_git: fix quoting in previous commit
 	commit (35164).
 
+	* 35209: Completion/Unix/Command/_git: remove -2 _describe in
+	__git_recent_commits.  This fixes duplicate entries, because
+	__git_recent_commits gets called twice for _git-checkout
+	(for __git_revisions and __git_tree_ishs).
+
 2015-05-19  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* users/20222: Completion/Unix/Command/_git: users/20222:
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 18d895469..a0ec3434a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5713,7 +5713,7 @@ __git_recent_commits () {
   expl=()
   _wanted heads expl 'head' compadd "$@" -a - heads && ret=0
   expl=()
-  _describe -2Vx -t commits 'recent commit object name' descr && ret=0
+  _describe -Vx -t commits 'recent commit object name' descr && ret=0
   return $ret
 }