diff options
author | Leonid Volnitsky <leonid@volnitsky.com> | 2014-01-10 08:20:29 -0800 |
---|---|---|
committer | Leonid Volnitsky <leonid@volnitsky.com> | 2014-01-10 08:20:29 -0800 |
commit | 70e2b1a8c75998e96ea05cf88df8580d48013140 (patch) | |
tree | 721e94bcfec12c77741e7e04862253eb00ef2b4b /git-prompt.sh | |
parent | Revert "format consistently" (diff) | |
parent | Fix support for non English UI. (diff) | |
download | git-prompt-70e2b1a8c75998e96ea05cf88df8580d48013140.tar.gz git-prompt-70e2b1a8c75998e96ea05cf88df8580d48013140.tar.bz2 git-prompt-70e2b1a8c75998e96ea05cf88df8580d48013140.zip |
Merge pull request #35 from maruel/fix_localized
Fix support for non English UI.
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-x | git-prompt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index dea2967..d1e88b3 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -439,7 +439,7 @@ parse_git_status() { # info not in porcelain status eval " $( - git status 2>/dev/null | + LANG=C git status 2>/dev/null | sed -n ' s/^\(# \)*On branch /branch=/p s/^nothing to commi.*/clean=clean/p @@ -462,7 +462,7 @@ parse_git_status() { # A "with space" <------------- WITH QOUTES eval " $( - git status --porcelain 2>/dev/null | + LANG=C git status --porcelain 2>/dev/null | sed -n ' s,^[MARC]. \([^\"][^/]*/\?\).*, added=added; [[ \" ${added_files[@]} \" =~ \" \1 \" ]] || added_files[${#added_files[@]}]=\"\1\",p s,^[MARC]. \"\([^/]\+/\?\).*\"$, added=added; [[ \" ${added_files[@]} \" =~ \" \1 \" ]] || added_files[${#added_files[@]}]=\"\1\",p |