diff options
Diffstat (limited to 'project.py')
-rwxr-xr-x[-rw-r--r--] | project.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/project.py b/project.py index e4682e6a..5297a5cb 100644..100755 --- a/project.py +++ b/project.py | |||
@@ -2270,6 +2270,16 @@ 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): | ||
2274 | cmd = ['ls-remote'] | ||
2275 | p = GitCommand(self, cmd, capture_stdout=True) | ||
2276 | if p.Wait() == 0: | ||
2277 | if hasattr(p.stdout, 'decode'): | ||
2278 | return p.stdout.decode('utf-8') | ||
2279 | else: | ||
2280 | return p.stdout | ||
2281 | return None | ||
2282 | |||
2273 | def _Revert(self, rev): | 2283 | def _Revert(self, rev): |
2274 | cmd = ['revert'] | 2284 | cmd = ['revert'] |
2275 | cmd.append('--no-edit') | 2285 | cmd.append('--no-edit') |