mirror of
https://github.com/b-ryan/powerline-shell.git
synced 2026-09-10 07:26:28 -04:00
Merge pull request #120 from disco-stu/master
Use LANG='C' to prevent language specific git output.
This commit is contained in:
commit
790fc115e9
|
|
@ -6,7 +6,7 @@ def get_git_status():
|
|||
has_untracked_files = False
|
||||
origin_position = ""
|
||||
output = subprocess.Popen(['git', 'status', '--ignore-submodules'],
|
||||
stdout=subprocess.PIPE).communicate()[0]
|
||||
env={"LANG": "C"}, stdout=subprocess.PIPE).communicate()[0]
|
||||
for line in output.split('\n'):
|
||||
origin_status = re.findall(
|
||||
r"Your branch is (ahead|behind).*?(\d+) comm", line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue