lib/grit/commit_stats.rb in gitlab-grit-2.5.2 vs lib/grit/commit_stats.rb in gitlab-grit-2.6.0

- old
+ new

@@ -66,10 +66,10 @@ lines.shift while lines.first && lines.first.empty? files = [] while lines.first =~ /^([-\d]+)\s+([-\d]+)\s+(.+)/ - (additions, deletions, filename) = lines.shift.split + (additions, deletions, filename) = lines.shift.split(nil, 3) additions = additions.to_i deletions = deletions.to_i total = additions + deletions files << [filename, additions, deletions, total] end