aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/git-stats-graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/git-stats-graph.py')
-rwxr-xr-xcontrib/git-stats-graph.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/git-stats-graph.py b/contrib/git-stats-graph.py
index 7632d566..dc944c18 100755
--- a/contrib/git-stats-graph.py
+++ b/contrib/git-stats-graph.py
@@ -44,7 +44,9 @@ def stats():
for i, t in enumerate(tags[:-1]):
counts.append(int(git("rev-list", f"{t}..{tags[i+1]}", "--count")))
dates.append(
- date.fromisoformat(git("show", "-s", "--format=%cs", t).split("\n")[-1])
+ date.fromisoformat(
+ git("show", "-s", "--format=%cs", tags[i + 1]).split("\n")[-1]
+ )
)
statline = git("diff", "--stat", t, tags[i + 1]).split("\n")[-1]
fnum, _, _, ins, _, dels, _ = statline.split()