diff --git a/project.py b/project.py index 8a38c584..e0419e7a 100755 --- a/project.py +++ b/project.py @@ -2815,15 +2815,10 @@ class Project(object): gitdir=self._gitdir, capture_stdout=True, capture_stderr=True) - r = [] - for line in p.process.stdout: - if line[-1] == '\n': - line = line[:-1] - r.append(line) if p.Wait() != 0: raise GitError('%s rev-list %s: %s' % (self._project.name, str(args), p.stderr)) - return r + return p.stdout.splitlines() def __getattr__(self, name): """Allow arbitrary git commands using pythonic syntax.