changeset 417:65b414ab988c

only want heads and tags
author Scott Chacon <schacon@gmail.com>
date Fri, 15 Jul 2011 15:33:48 -0700
parents 6a23158a4da4
children 31c6154bd88d
files hggit/git_handler.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py	Wed Jul 13 08:06:52 2011 -0500
+++ b/hggit/git_handler.py	Fri Jul 15 15:33:48 2011 -0700
@@ -785,7 +785,8 @@
                         raise hgutil.Abort("ambiguous reference %s: %r" % (h, r))
             else:
                 want = [sha for ref, sha in refs.iteritems()
-                        if not ref.endswith('^{}')]
+                        if not ref.endswith('^{}')
+                        and ( ref.startswith('refs/heads/') or ref.startswith('refs/tags/') ) ]
             want = [x for x in want if x not in self.git]
             return want
         f, commit = self.git.object_store.add_pack()