summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorAkshay Verma <akshayverma948@gmail.com>2018-03-24 12:27:05 +0530
committerAkshay Verma <akshayverma948@gmail.com>2018-03-24 13:00:08 +0530
commit0f2e45a3a69e9a99d91ed26768b82e3454aa8630 (patch)
tree2fb293f8eae00cfe80c47bf067a61d164f6e03d9 /project.py
parentcf7c0834cfc24c5c9584695c657c6baf97d0fbb3 (diff)
downloadgit-repo-0f2e45a3a69e9a99d91ed26768b82e3454aa8630.tar.gz
Pass refs to ls-remote
This will fix the issue of parsing large output locally Change-Id: I9a5cf1238147a02c92a3fca53eab9bd57f9d16b4
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project.py b/project.py
index 5297a5cb..855bd60d 100755
--- a/project.py
+++ b/project.py
@@ -2270,8 +2270,8 @@ class Project(object):
2270 if self._allrefs: 2270 if self._allrefs:
2271 raise GitError('%s cherry-pick %s ' % (self.name, rev)) 2271 raise GitError('%s cherry-pick %s ' % (self.name, rev))
2272 2272
2273 def _LsRemote(self): 2273 def _LsRemote(self, refs):
2274 cmd = ['ls-remote'] 2274 cmd = ['ls-remote', self.remote.name, refs]
2275 p = GitCommand(self, cmd, capture_stdout=True) 2275 p = GitCommand(self, cmd, capture_stdout=True)
2276 if p.Wait() == 0: 2276 if p.Wait() == 0:
2277 if hasattr(p.stdout, 'decode'): 2277 if hasattr(p.stdout, 'decode'):