diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index a7aeb26..9682814 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -1064,7 +1064,7 @@ def new_request_pull( form = pagure.forms.RequestPullForm() if form.validate_on_submit() and repo_committer: try: - if repo.settings.get( + if parent.settings.get( 'Enforce_signed-off_commits_in_pull-request', False): for commit in diff_commits: if 'signed-off-by' not in commit.message.lower(): diff --git a/tests/test_pagure_flask_ui_fork.py b/tests/test_pagure_flask_ui_fork.py index c9daaa5..b1dba26 100644 --- a/tests/test_pagure_flask_ui_fork.py +++ b/tests/test_pagure_flask_ui_fork.py @@ -1513,6 +1513,114 @@ index 0000000..2a552bb self.assertNotIn('