--- a/ForgeGit/forgegit/git_main.py
+++ b/ForgeGit/forgegit/git_main.py
@@ -8,6 +8,7 @@
from ming.orm.ormsession import ThreadLocalORMSession
# Pyforge-specific imports
+import allura.task
from allura.lib import helpers as h
from allura import model as M
from allura.controllers.repository import RepoRootController, RefsController, CommitsController
@@ -58,13 +59,12 @@
cloned_from_path=cloned_from.full_fs_path,
cloned_from_name=cloned_from.app.config.script_name(),
cloned_from_url=cloned_from.full_fs_path)
- g.publish('audit', 'repo.clone', msg)
+ allura.task.repo_clone.post(msg)
elif init_from_url:
msg = dict(
cloned_from_path=None,
cloned_from_name=None,
cloned_from_url=init_from_url)
- g.publish('audit', 'repo.clone', msg)
+ allura.task.repo_clone.post(msg)
else:
- g.publish('audit', 'repo.init',
- dict(repo_name=repo.name, repo_path=repo.fs_path))
+ allura.task.repo_init.post()