From f6e05d0655564bbcd18ec3ee3ce98ff506022fcc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 1 Jul 2021 08:21:53 -0400 Subject: [PATCH] send-email: fix bug selecting addl. branches After Nab's updates adding binary ref support, this was broken. --- gitsrht/blueprints/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/email.py b/gitsrht/blueprints/email.py index 158b457..a783e52 100644 --- a/gitsrht/blueprints/email.py +++ b/gitsrht/blueprints/email.py @@ -38,7 +38,7 @@ def render_send_email_start(owner, repo, git_repo, selected_branch, ) for branch in git_repo.raw_listall_branches(pygit2.GIT_BRANCH_LOCAL)] branches = sorted(branches, - key=lambda b: (b[0] == selected_branch, commit_time(b[2])), + key=lambda b: (b[0].decode() == selected_branch, commit_time(b[2])), reverse=True) commits = dict() -- 2.38.4