From ae069a9fabf245439702f6fd69a8d4581f524463 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 20 2016 07:20:11 +0000 Subject: Ask for the Signed-Off-By to be at the front of the line --- diff --git a/pagure/hooks/files/pagure_block_unsigned.py b/pagure/hooks/files/pagure_block_unsigned.py index bd366f3..ecc1ffe 100755 --- a/pagure/hooks/files/pagure_block_unsigned.py +++ b/pagure/hooks/files/pagure_block_unsigned.py @@ -54,7 +54,7 @@ def run_as_pre_receive_hook(): signed = False for line in pagure.lib.git.read_git_lines( ['log', '--no-walk', commit], abspath): - if 'signed-off-by' in line.lower(): + if line.lower().strip().startswith('signed-off-by'): signed = True break if pagure.APP.config.get('HOOK_DEBUG', False):