Skip to content

Commit 011d89d

Browse files
committedJul 24, 2012
Merge pull request #68 from FlorianLudwig/master
Fix GitPython on systems with language != english
2 parents 6b5f70c + c08f435 commit 011d89d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎git/cmd.py

+3
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,15 @@ def execute(self, command,
337337
cwd=self._working_dir
338338

339339
# Start the process
340+
env = os.environ.copy()
341+
env['LANG'] = 'C'
340342
proc = Popen(command,
341343
cwd=cwd,
342344
stdin=istream,
343345
stderr=PIPE,
344346
stdout=PIPE,
345347
close_fds=(os.name=='posix'),# unsupported on linux
348+
env=env,
346349
**subprocess_kwargs
347350
)
348351
if as_process:

0 commit comments

Comments
 (0)