Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index e8695e82eff5e402b5d7ee09ecaa23216ea75c6b..f8668c1a8b9fcaf514ab7a620981c486fb671af3 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -259,10 +259,14 @@ def print_stats(similarity, find_copies, args): |
else: |
similarity_options = ['-M%s' % similarity] |
+ try: |
+ stdout = sys.stdout.fileno() |
Dirk Pranke
2014/05/29 20:31:36
drive-by nit: sys.stdout works fine, you don't nee
szager1
2014/05/29 20:48:04
There is some existing code that replaces sys.stdo
Dirk Pranke
2014/05/29 21:10:47
You lost me, or maybe I'm not understanding someth
|
+ except AttributeError: |
+ stdout = None |
return subprocess2.call( |
['git', |
'diff', '--no-ext-diff', '--stat'] + similarity_options + args, |
- env=env) |
+ stdout=stdout, env=env) |
class Settings(object): |