From: Catalin Marinas Date: Tue, 12 Jun 2007 21:57:08 +0000 (+0100) Subject: Show a joined string rather than list when reporting GIT failures X-Git-Tag: v0.13~37 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/57c05b31aa2ce889e818d38f8c927c6098727f9e Show a joined string rather than list when reporting GIT failures Signed-off-by: Catalin Marinas --- diff --git a/stgit/git.py b/stgit/git.py index bec691b..047c040 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -158,7 +158,7 @@ def _input(cmd, file_desc): p.tochild.write(line) p.tochild.close() if p.wait(): - raise GitException, '%s failed (%s)' % (str(cmd), + raise GitException, '%s failed (%s)' % (' '.join(cmd), p.childerr.read().strip()) def _input_str(cmd, string): @@ -166,14 +166,14 @@ def _input_str(cmd, string): p.tochild.write(string) p.tochild.close() if p.wait(): - raise GitException, '%s failed (%s)' % (str(cmd), + raise GitException, '%s failed (%s)' % (' '.join(cmd), p.childerr.read().strip()) def _output(cmd): p=popen2.Popen3(cmd, True) output = p.fromchild.read() if p.wait(): - raise GitException, '%s failed (%s)' % (str(cmd), + raise GitException, '%s failed (%s)' % (' '.join(cmd), p.childerr.read().strip()) return output @@ -185,7 +185,7 @@ def _output_one_line(cmd, file_desc = None): p.tochild.close() output = p.fromchild.readline().strip() if p.wait(): - raise GitException, '%s failed (%s)' % (str(cmd), + raise GitException, '%s failed (%s)' % (' '.join(cmd), p.childerr.read().strip()) return output @@ -193,7 +193,7 @@ def _output_lines(cmd): p=popen2.Popen3(cmd, True) lines = p.fromchild.readlines() if p.wait(): - raise GitException, '%s failed (%s)' % (str(cmd), + raise GitException, '%s failed (%s)' % (' '.join(cmd), p.childerr.read().strip()) return lines