From 5cb8a00743524728c10323e29d62447a1f11ccdb Mon Sep 17 00:00:00 2001 From: Martin Vahlensieck Date: Sat, 29 May 2021 18:38:34 +0200 Subject: [PATCH] Fix off-by-one error in get_log --- gitsrht/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/git.py b/gitsrht/git.py index 1a4f03e..1ccd909 100644 --- a/gitsrht/git.py +++ b/gitsrht/git.py @@ -53,7 +53,7 @@ def get_log(git_repo, commit, path="", commits_per_page=20, until=None): if until is not None and commit == until: break - elif len(commits) >= commits_per_page + 1: + elif len(commits) >= commits_per_page: break return commits -- 2.38.4