From bcc832bc49b255d0de9d9f2bb3183ab933469c1e Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Thu, 18 Jun 2009 21:16:38 +0300 Subject: [PATCH] Handle case with no commits between tags. --- gitstats | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitstats b/gitstats index 70fe910..d104a3c 100755 --- a/gitstats +++ b/gitstats @@ -194,6 +194,8 @@ class GitDataCollector(DataCollector): if prev != None: cmd += ' "^%s"' % prev output = getpipeoutput([cmd]) + if len(output) == 0: + continue prev = tag for line in output.split('\n'): parts = re.split('\s+', line, 2) -- 2.11.4.GIT