Skip to content

Commit f6107d9

Browse files
jdmansouryuvipanda
andauthored
Explain why we change the git locale to C
Co-authored-by: Yuvi Panda <[email protected]>
1 parent 6063570 commit f6107d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nbgitpuller/pull.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def execute_cmd(cmd, **kwargs):
1616
yield '$ {}\n'.format(' '.join(cmd))
1717
kwargs['stdout'] = subprocess.PIPE
1818
kwargs['stderr'] = subprocess.STDOUT
19+
# Explicitly set LANG=C, as `git` commandline output will be different if
20+
# the user environment has a different locale set!
1921
kwargs['env'] = dict(os.environ, LANG='C')
2022

2123
proc = subprocess.Popen(cmd, **kwargs)

0 commit comments

Comments
 (0)