From d3485c24f207938cad7eebeeb695742aeb05842c Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Jun 07 2016 14:28:58 +0000 Subject: Do not abort if branch name is wrong while viewing a commit --- diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index 13312eb..8a4cbfb 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -603,7 +603,7 @@ def view_commit(repo, commitid, username=None): branchname = flask.request.args.get('branch', None) if branchname and branchname not in repo_obj.listall_branches(): - flask.abort(404, 'Branch no found') + branchname = None if branchname: branch = repo_obj.lookup_branch(branchname)