: nply/git-summary

commit 025ff32bfd2757d833fc1bc33e4777102768c85d
parent 09cb6de01d27498add0dedb731194c8872486d49
Author: Mirko Ledda <mko.ledda@gmail.com>
Date: Thu, 26 Apr 2018 19:58:45 -0700

Merge pull request #2 from Schnoop/patch-1

Enforce english if you have a localized shell
1 file changed, 4 insertions(+), 3 deletions(-)
M
git-summary
|
7
++++---
diff --git a/git-summary b/git-summary
@@ -172,9 +172,9 @@ summarize_one_git_repo () {
 
     ### Check local state
     local state=""
-    local untracked=`git -C $f status | grep Untracked -c`
-    local new_files=`git -C $f status | grep "new file" -c`
-    local modified=`git -C $f status | grep modified -c`
+    local untracked=`LC_ALL=C git -C $f status | grep Untracked -c`
+    local new_files=`LC_ALL=C git -C $f status | grep "new file" -c`
+    local modified=`LC_ALL=C git -C $f status | grep modified -c`
 
     if [ $untracked -ne 0 ]; then
       state="${state}?"

@@ -256,3 +256,4 @@ max_len () {
 
 
 git_summary $@
+