diff options
-rwxr-xr-x | project.py | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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. |