mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-06-28 20:17:26 +00:00
Pass refs to ls-remote
This will fix the issue of parsing large output locally Change-Id: I9a5cf1238147a02c92a3fca53eab9bd57f9d16b4
This commit is contained in:
@ -2270,8 +2270,8 @@ class Project(object):
|
||||
if self._allrefs:
|
||||
raise GitError('%s cherry-pick %s ' % (self.name, rev))
|
||||
|
||||
def _LsRemote(self):
|
||||
cmd = ['ls-remote']
|
||||
def _LsRemote(self, refs):
|
||||
cmd = ['ls-remote', self.remote.name, refs]
|
||||
p = GitCommand(self, cmd, capture_stdout=True)
|
||||
if p.Wait() == 0:
|
||||
if hasattr(p.stdout, 'decode'):
|
||||
|
Reference in New Issue
Block a user