Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/forks_controller.rb')
-rw-r--r--app/controllers/projects/forks_controller.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/controllers/projects/forks_controller.rb b/app/controllers/projects/forks_controller.rb
deleted file mode 100644
index 21a151a426e..00000000000
--- a/app/controllers/projects/forks_controller.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-class Projects::ForksController < Projects::ApplicationController
- # Authorize
- before_filter :require_non_empty_project
- before_filter :authorize_download_code!
-
- def new
- @namespaces = current_user.manageable_namespaces
- @namespaces.delete(@project.namespace)
- end
-
- def create
- namespace = Namespace.find(params[:namespace_key])
- @forked_project = ::Projects::ForkService.new(project, current_user, namespace: namespace).execute
-
- if @forked_project.saved? && @forked_project.forked?
- redirect_to(
- namespace_project_path(@forked_project.namespace, @forked_project),
- notice: 'Project was successfully forked.'
- )
- else
- @title = 'Fork project'
- render :error
- end
- end
-end