diff --git a/pagure/hooks/files/pagure_hook_tickets.py b/pagure/hooks/files/pagure_hook_tickets.py index b07292e..dbe9bff 100755 --- a/pagure/hooks/files/pagure_hook_tickets.py +++ b/pagure/hooks/files/pagure_hook_tickets.py @@ -80,7 +80,7 @@ def run_as_post_receive_hook(): data = ''.join( pagure.lib.git.read_git_lines( ['show', 'HEAD:%s' % filename], abspath)) - if data: + if data and 'files' not in filename: try: json_data = json.loads(data) except: