mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
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.
This commit is contained in:
parent
046d49f782
commit
3cfcf5e0aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue