Explorar el Código

Handle case with no commits between tags.

Heikki Hokkanen hace 16 años
padre
commit
bcc832bc49
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      gitstats

+ 2
- 0
gitstats Ver fichero

@@ -194,6 +194,8 @@ class GitDataCollector(DataCollector):
194 194
 			if prev != None:
195 195
 				cmd += ' "^%s"' % prev
196 196
 			output = getpipeoutput([cmd])
197
+			if len(output) == 0:
198
+				continue
197 199
 			prev = tag
198 200
 			for line in output.split('\n'):
199 201
 				parts = re.split('\s+', line, 2)