From c84343bfe84a46981ff4c8a2d7d692286c0465b6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 09 2016 15:20:41 +0000 Subject: Put the repo information at the top of the fedmsg message to reduce duplication --- diff --git a/pagure/hooks/files/fedmsg_hook.py b/pagure/hooks/files/fedmsg_hook.py index 87cda19..2b7012a 100755 --- a/pagure/hooks/files/fedmsg_hook.py +++ b/pagure/hooks/files/fedmsg_hook.py @@ -115,9 +115,6 @@ for line in sys.stdin.readlines(): rev=unicode(rev), path=abspath, username=username, - repo=project.to_json(public=True) - if not isinstance(project, basestring) else project, - branch=refname, agent=os.getlogin(), ) @@ -151,5 +148,7 @@ for line in sys.stdin.readlines(): branch=refname, forced=forced, agent=username, + repo=project.to_json(public=True) + if not isinstance(project, basestring) else project, ), )