~edwargix/git.sr.ht

a003323e87ac7fbeb66e3e0fbc206d1949ec3e42 — Drew DeVault 4 years ago 658a6b7
API: repo_commits_GET: fix get_log call

A new parameter was introduced.
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/api/porcelain.py
M gitsrht/blueprints/api/porcelain.py => gitsrht/blueprints/api/porcelain.py +1 -1
@@ 147,7 147,7 @@ def repo_commits_GET(username, reponame, ref, path):
        start = request.args.get("start")
        if start:
            commit = git_repo.get(start)
        commits = get_log(git_repo, commit, commits_per_page)
        commits = get_log(git_repo, commit, commits_per_page=commits_per_page)
        next_id = None
        if len(commits) > commits_per_page:
            next_id = str(commits[-1].id)