From c5d1f559e8b2abeb7b8eb6c21e6612c6d5fe27eb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 11 2018 08:41:41 +0000 Subject: Fix the link to the pull-request shown by the default git hook Fixes https://pagure.io/pagure/issue/2898 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/hooks/files/default_hook.py b/pagure/hooks/files/default_hook.py index 8c70e26..2ff0bed 100755 --- a/pagure/hooks/files/default_hook.py +++ b/pagure/hooks/files/default_hook.py @@ -113,7 +113,7 @@ def run_as_post_receive_hook(): print('View pull-request for %s' % refname) print(' %s/%s/pull-request/%s' % ( _config['APP_URL'].rstrip('/'), - project.url_path, + pr.project.url_path, pr.id) ) # If no existing PRs, provide the link to open one