mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
hgrepo.pull: use githandler property
This commit is contained in:
parent
728f8df8de
commit
63f40c5059
@ -11,8 +11,7 @@ def generate_repo_subclass(baseclass):
|
||||
class hgrepo(baseclass):
|
||||
def pull(self, remote, heads=None, force=False):
|
||||
if isinstance(remote, gitrepo):
|
||||
git = GitHandler(self, self.ui)
|
||||
return git.fetch(remote.path, heads)
|
||||
return self.githandler.fetch(remote.path, heads)
|
||||
else: #pragma: no cover
|
||||
return super(hgrepo, self).pull(remote, heads, force)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user