From a22558c7663b938799424ae92418ad869fa6b9aa Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 25 2016 12:36:53 +0000 Subject: Fix setting the agent doing the push This info is extracted from the environment variable set by gitolite. --- diff --git a/pagure/hooks/files/fedmsg_hook.py b/pagure/hooks/files/fedmsg_hook.py index d3e4cfc..6616fb2 100755 --- a/pagure/hooks/files/fedmsg_hook.py +++ b/pagure/hooks/files/fedmsg_hook.py @@ -84,7 +84,7 @@ for line in sys.stdin.readlines(): branch=refname, forced=forced, authors=list(authors), - agent=username, + agent=os.environ['GL_USER'], repo=project.to_json(public=True) if not isinstance(project, basestring) else project, ),