summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsheveko <28670374+sheveko@users.noreply.github.com>2019-04-07 20:21:54 +0200
committerMarc Cornellà <marc.cornella@live.com>2019-04-07 20:21:54 +0200
commit3cfcf5e0aa71bddcf7ab45d3880f142654f22266 (patch)
treefa07132654f9afc464554c05e0dbb6e8306bcf9f
parent046d49f7827c994916a55d1531e70564682307af (diff)
downloadzsh-3cfcf5e0aa71bddcf7ab45d3880f142654f22266.tar.gz
zsh-3cfcf5e0aa71bddcf7ab45d3880f142654f22266.tar.bz2
zsh-3cfcf5e0aa71bddcf7ab45d3880f142654f22266.zip
git-prompt: run git status with LANG=C (#6087)
As described in #6086 there will be an error when one set another language than English.
-rw-r--r--plugins/git-prompt/gitstatus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py
index a4d07cde6..5243af23c 100644
--- a/plugins/git-prompt/gitstatus.py
+++ b/plugins/git-prompt/gitstatus.py
@@ -30,7 +30,7 @@ def get_tagname_or_hash():
# `git status --porcelain --branch` can collect all information
# branch, remote_branch, untracked, staged, changed, conflicts, ahead, behind
-po = Popen(['git', 'status', '--porcelain', '--branch'], stdout=PIPE, stderr=PIPE)
+po = Popen(['git', 'status', '--porcelain', '--branch'], env={"LANG": "C"}, stdout=PIPE, stderr=PIPE)
stdout, sterr = po.communicate()
if po.returncode != 0:
sys.exit(0) # Not a git repository