Fix ambiguous argument when author is not specified

This commit is contained in:
Alef Farah 2018-07-25 18:32:15 -03:00
parent cdfa6bf467
commit 36967bc6f4

View file

@ -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