diff --git a/roles/git/hooks/files/post-receive-fedmsg b/roles/git/hooks/files/post-receive-fedmsg index 699f4e94a8..782accde62 100755 --- a/roles/git/hooks/files/post-receive-fedmsg +++ b/roles/git/hooks/files/post-receive-fedmsg @@ -16,6 +16,7 @@ import fedmsg.config abspath = os.path.abspath(os.environ['GIT_DIR']) # This assumes git root dir is named "repo_name.git" repo_name = '.'.join(abspath.split(os.path.sep)[-1].split('.')[:-1]) +namespace = abspath.split(os.path.sep)[-2] username = getpass.getuser() @@ -111,6 +112,7 @@ for line in lines: rev=unicode(rev), path=abspath, repo=repo_name, + namespace=namespace, branch=branch, agent=os.getlogin(), )