~edwargix/git.sr.ht

5cb8a00743524728c10323e29d62447a1f11ccdb — Martin Vahlensieck 3 years ago b8a5b7b
Fix off-by-one error in get_log
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/git.py
M gitsrht/git.py => gitsrht/git.py +1 -1
@@ 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