From 5f61bfad6ecd86a45a0900d8aeef0ef0b5006cce Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 23 Sep 2015 19:27:19 +0200 Subject: [PATCH] summary: beware of locale issues, and pass options to line-summary * bin/git-summary: here. --- bin/git-summary | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/git-summary b/bin/git-summary index 8b69000..33f21be 100755 --- a/bin/git-summary +++ b/bin/git-summary @@ -48,7 +48,7 @@ file_count() { # authors() { - git shortlog -n -s $commit | awk ' + git shortlog -n -s $commit | LC_ALL=C awk ' { args[NR] = $0; sum += $0 } END { for (i = 1; i <= NR; ++i) { @@ -69,7 +69,8 @@ repository_age() { # summary if test "$1" = "--line"; then - git line-summary + shift + git line-summary "$@" echo else