From fdd6b045c43ce9764827651500a6b08af80a5d51 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 13 2016 09:10:08 +0000 Subject: Fix the error message returned when trying to create a local PR while not allowed --- diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index 6900249..121f931 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -878,7 +878,7 @@ def new_request_pull(repo, branch_to, branch_from, username=None): parent = repo.parent if not parent.settings.get('pull_requests', True): - flask.abort(404, 'No pull-requests found for this project') + flask.abort(404, 'No pull-request allowed on this project') repopath = pagure.get_repo_path(repo) repo_obj = pygit2.Repository(repopath)