summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2018-07-13 15:48:36 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-07-13 15:48:36 +0000
commita6515fb952ab31a820288ce342e31d2917d0a06c (patch)
treeafaa56f02f8fa3fbb5c2412e374829e6d5a307f0 /repo
parent993dcacd17c6ea0d9c366c1bfc3e9579dfa19b44 (diff)
parenta9399846faa077a8eb15aedb8b498cba7cf3aeba (diff)
downloadgit-repo-a6515fb952ab31a820288ce342e31d2917d0a06c.tar.gz
Merge "Flush stderr on Windows"
Diffstat (limited to 'repo')
-rwxr-xr-xrepo4
1 files changed, 4 insertions, 0 deletions
diff --git a/repo b/repo
index 78cb41bf..bd3a3f1c 100755
--- a/repo
+++ b/repo
@@ -144,6 +144,10 @@ def _print(*objects, **kwargs):
144 out = kwargs.get('file', sys.stdout) 144 out = kwargs.get('file', sys.stdout)
145 out.write(sep.join(objects) + end) 145 out.write(sep.join(objects) + end)
146 146
147 # On Windows stderr is buffered, so flush to maintain the order of error messages.
148 if out == sys.stderr and platform.system() == "Windows":
149 out.flush()
150
147 151
148# Python version check 152# Python version check
149ver = sys.version_info 153ver = sys.version_info