Only fetch objects that are not already present.

fetch_pack was needlessly walking every ref even when the refs were already
known locally.
This commit is contained in:
Brendan Cully 2011-05-18 00:31:40 -07:00
parent 00fdcfbbc3
commit 001a4d567d

View File

@ -667,6 +667,7 @@ class GitHandler(object):
else:
want = [sha for ref, sha in refs.iteritems()
if not ref.endswith('^{}')]
want = [x for x in want if x not in self.git]
return want
f, commit = self.git.object_store.add_pack()
try: