Pārlūkot izejas kodu

Fix commits per tag counting.

A hard-to-spot bug where the total number of commits for a tag was always set
to the number of commits that one of the commiters did and not the cumulated
sum over all commiters.

[hoxu@users.sf.net: created a commit from diff and description sent by Thomas]
Thomas R. Koll 13 gadus atpakaļ
vecāks
revīzija
ad7efbb939
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Parādīt failu

@@ -273,7 +273,7 @@ class GitDataCollector(DataCollector):
273 273
 				parts = re.split('\s+', line, 2)
274 274
 				commits = int(parts[1])
275 275
 				author = parts[2]
276
-				self.tags[tag]['commits'] = commits
276
+				self.tags[tag]['commits'] += commits
277 277
 				self.tags[tag]['authors'][author] = commits
278 278
 
279 279
 		# Collect revision statistics