--- a/ForgeGit/forgegit/git_main.py
+++ b/ForgeGit/forgegit/git_main.py
@@ -50,6 +50,7 @@
ThreadLocalORMSession.flush_all()
cloned_from_project_id = self.config.options.get('cloned_from_project_id')
cloned_from_repo_id = self.config.options.get('cloned_from_repo_id')
+ init_from_url = self.config.options.get('init_from_url')
if cloned_from_project_id is not None:
with h.push_config(c, project=M.Project.query.get(_id=cloned_from_project_id)):
cloned_from = GM.Repository.query.get(_id=cloned_from_repo_id)
@@ -58,6 +59,12 @@
cloned_from_name=cloned_from.app.config.script_name(),
cloned_from_url=cloned_from.app.url)
g.publish('audit', 'repo.clone', 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)
else:
g.publish('audit', 'repo.init',
dict(repo_name=repo.name, repo_path=repo.fs_path))