summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-14 15:23:01 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-14 15:23:01 +0100
commit9ea3dbdf67af10ccc6ad22fb3294bbd790a3698f (patch)
treefca95ab99ff1a17f80f28ce6adc55108a644a790 /git/cmd.py
parent9044abce7e7b3d8164fe7b83e5a21f676471b796 (diff)
parent3eb7265c532e99e8e434e31f910b05c055ae4369 (diff)
downloadgitpython-9ea3dbdf67af10ccc6ad22fb3294bbd790a3698f.tar.gz
Merge pull request #181 from hashar/git-exec-const-output
Ensure consistent output from git command
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index d420cf33..49487650 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -316,6 +316,9 @@ class Git(LazyMixin):
if ouput_stream is True, the stdout value will be your output stream:
* output_stream if extended_output = False
* tuple(int(status), output_stream, str(stderr)) if extended_output = True
+
+ Note git is executed with LC_MESSAGES="C" to ensure consitent
+ output regardless of system language.
:raise GitCommandError:
@@ -333,6 +336,7 @@ class Git(LazyMixin):
# Start the process
proc = Popen(command,
+ env={"LC_MESSAGES": "C"},
cwd=cwd,
stdin=istream,
stderr=PIPE,