~edwargix/git.sr.ht

5ab1149e212885f442e47fc4054d11bf64e3fd9a — Drew DeVault 6 years ago 8c0ff9e
Fix ncommits <= 0
1 files changed, 2 insertions(+), 0 deletions(-)

M gitsrht/blueprints/email.py
M gitsrht/blueprints/email.py => gitsrht/blueprints/email.py +2 -0
@@ 34,6 34,8 @@ def send_email_start(owner, repo):
        ncommits = int(request.args.get("commits", default=8))
        if ncommits > 32:
            ncommits = 32
        if ncommits < 8:
            ncommits = 8
        selected_branch = request.args.get("branch", default=None)

        branches = [(