summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py7
1 files changed, 1 insertions, 6 deletions
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):
2815 gitdir=self._gitdir, 2815 gitdir=self._gitdir,
2816 capture_stdout=True, 2816 capture_stdout=True,
2817 capture_stderr=True) 2817 capture_stderr=True)
2818 r = []
2819 for line in p.process.stdout:
2820 if line[-1] == '\n':
2821 line = line[:-1]
2822 r.append(line)
2823 if p.Wait() != 0: 2818 if p.Wait() != 0:
2824 raise GitError('%s rev-list %s: %s' % 2819 raise GitError('%s rev-list %s: %s' %
2825 (self._project.name, str(args), p.stderr)) 2820 (self._project.name, str(args), p.stderr))
2826 return r 2821 return p.stdout.splitlines()
2827 2822
2828 def __getattr__(self, name): 2823 def __getattr__(self, name):
2829 """Allow arbitrary git commands using pythonic syntax. 2824 """Allow arbitrary git commands using pythonic syntax.