summaryrefslogtreecommitdiff
path: root/app/observers
diff options
context:
space:
mode:
authorAngus MacArthur <amacarthur@blackberry.com>2013-03-19 11:37:50 -0400
committerAngus MacArthur <amacarthur@blackberry.com>2013-04-15 01:54:52 -0400
commitae33fdf297e03866ecc6c31c5470dd5ad72d1328 (patch)
tree6b3b8fb315fbc3e0b6ebf6dbb527abe9bcb3d245 /app/observers
parente996c52636f46b193b5ff7291e9b835c317e5438 (diff)
downloadgitlab-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.rb12
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)