|
@@ -2815,15 +2815,10 @@ class Project(object):
|
|
|
gitdir=self._gitdir,
|
|
gitdir=self._gitdir,
|
|
|
capture_stdout=True,
|
|
capture_stdout=True,
|
|
|
capture_stderr=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:
|
|
if p.Wait() != 0:
|
|
|
raise GitError('%s rev-list %s: %s' %
|
|
raise GitError('%s rev-list %s: %s' %
|
|
|
(self._project.name, str(args), p.stderr))
|
|
(self._project.name, str(args), p.stderr))
|
|
|
- return r
|
|
|
|
|
|
|
+ return p.stdout.splitlines()
|
|
|
|
|
|
|
|
def __getattr__(self, name):
|
|
def __getattr__(self, name):
|
|
|
"""Allow arbitrary git commands using pythonic syntax.
|
|
"""Allow arbitrary git commands using pythonic syntax.
|