Skip to content
Snippets Groups Projects
Commit 65b414ab authored by Scott Chacon's avatar Scott Chacon
Browse files

only want heads and tags

parent 6a23158a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment