From db30efe9790b5492670dd4104ae8471cddc6c58a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 25 2016 10:22:29 +0000 Subject: Set the branchname variable when using the default branch This fixes displaying the drop-down of all the branches in the commits view --- diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index f816c77..61b441b 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -277,6 +277,7 @@ def view_commits(repo, branchname=None, username=None): branch = repo_obj.lookup_branch(branchname) elif not repo_obj.is_empty and not repo_obj.head_is_unborn: branch = repo_obj.lookup_branch(repo_obj.head.shorthand) + branchname = branch.branch_name else: branch = None