From: Karl Hasselström Date: Fri, 04 Jul 2008 06:35:18 GMT Subject: [StGit PATCH] Discard stderr output from git apply Message-ID: <20080704063427.9515.68707.stgit@yoghurt> It prints error messages when it fails, and we don't need to see them since we don't care exactly _why_ it failed. Signed-off-by: Karl Hasselström --- With the optimizations that make us start using apply a lot; I noticed git apply was spamming on stderr. stgit/lib/git.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/stgit/lib/git.py b/stgit/lib/git.py index 6ccdfa7..9208965 100644 --- a/stgit/lib/git.py +++ b/stgit/lib/git.py @@ -556,7 +556,7 @@ class Index(RunWithEnv): """In-index patch application, no worktree involved.""" try: self.run(['git', 'apply', '--cached'] - ).raw_input(patch_text).no_output() + ).raw_input(patch_text).discard_stderr().no_output() except run.RunException: raise MergeException('Patch does not apply cleanly') def delete(self):