mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
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:
parent
00fdcfbbc3
commit
001a4d567d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user