Преглед изворни кода

Fix potential KeyError with 'lines_added' in 55e46db.

[hoxu@users.sf.net: rewrote commit message]

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Wulf C. Krueger пре 15 година
родитељ
комит
1e70f827af
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Прегледај датотеку

@@ -246,7 +246,7 @@ class GitDataCollector(DataCollector):
246 246
 
247 247
 		# Collect revision statistics
248 248
 		# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
249
-		lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%an <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
249
+		lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
250 250
 		for line in lines:
251 251
 			parts = line.split(' ', 4)
252 252
 			author = ''