From d094aa01db94c6614f053eaa39de192d4b66d2e4 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Sep 06 2016 08:24:23 +0000 Subject: Avoid issues attachment containing json to be considered as an issue to be created/updated --- 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: