Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
3cfcf5e0
Commit
3cfcf5e0
authored
Apr 07, 2019
by
sheveko
Committed by
Marc Cornellà
Apr 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
046d49f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gitstatus.py
plugins/git-prompt/gitstatus.py
+1
-1
No files found.
plugins/git-prompt/gitstatus.py
View file @
3cfcf5e0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment