From 36967bc6f4f46e590d66b44cba0aba3b44918d28 Mon Sep 17 00:00:00 2001 From: Alef Farah Date: Wed, 25 Jul 2018 18:32:15 -0300 Subject: [PATCH] Fix ambiguous argument when author is not specified --- git-quick-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-quick-stats b/git-quick-stats index c0c2b2f..9a1e25c 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -204,7 +204,7 @@ function commitsByHour() { for i in `seq -w 0 23` do echo -ne "\t$i\t" - echo $(git shortlog -n --no-merges --format='%ad %s' "$_author" $_since $_until | grep " $i:" | wc -l) + echo "$(git shortlog -n --no-merges --format='%ad %s' $_author $_since $_until | grep ' '$i: | wc -l)" done | awk '{ count[$1] = $2 total += $2