diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-03-19 11:37:50 -0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-04-15 01:54:52 -0400 |
commit | ae33fdf297e03866ecc6c31c5470dd5ad72d1328 (patch) | |
tree | 6b3b8fb315fbc3e0b6ebf6dbb527abe9bcb3d245 /app/observers | |
parent | e996c52636f46b193b5ff7291e9b835c317e5438 (diff) | |
download | gitlab-ce-ae33fdf297e03866ecc6c31c5470dd5ad72d1328.tar.gz |
updated fork feature to use gitlab-shell for v5 of gitlab
Diffstat (limited to 'app/observers')
-rw-r--r-- | app/observers/project_observer.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb index 7d7ecdd319f..de9edf41c6d 100644 --- a/app/observers/project_observer.rb +++ b/app/observers/project_observer.rb @@ -1,11 +1,13 @@ class ProjectObserver < BaseObserver def after_create(project) - GitlabShellWorker.perform_async( - :add_repository, - project.path_with_namespace - ) + unless project.forked? + GitlabShellWorker.perform_async( + :add_repository, + project.path_with_namespace + ) - log_info("#{project.owner.name} created a new project \"#{project.name_with_namespace}\"") + log_info("#{project.owner.name} created a new project \"#{project.name_with_namespace}\"") + end end def after_update(project) |