diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-03-12 17:38:08 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-03-12 17:38:08 +0000 |
commit | 826bc72c12cde117c52bfc4b2acb59254a24eff9 (patch) | |
tree | ce1a0fd9387a606c955e1cf29b0f8774baf7c3cf /app/controllers | |
parent | a3b626bf2544a1ad98651a2a2c5cdd13dc934e12 (diff) | |
parent | 380a67ad4c635ca6fbfc4e8845f97788873f4e36 (diff) | |
download | gitlab-ce-826bc72c12cde117c52bfc4b2acb59254a24eff9.tar.gz |
Merge branch 'support-go-subpackages' into 'master'
Support Golang subpackage fetching
Closes #13805
See merge request !3191
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index aea08ecce3e..c70add86a20 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -1,7 +1,6 @@ class ProjectsController < ApplicationController include ExtractsPath - prepend_before_action :render_go_import, only: [:show] skip_before_action :authenticate_user!, only: [:show, :activity] before_action :project, except: [:new, :create] before_action :repository, except: [:new, :create] @@ -242,16 +241,6 @@ class ProjectsController < ApplicationController end end - def render_go_import - return unless params["go-get"] == "1" - - @namespace = params[:namespace_id] - @id = params[:project_id] || params[:id] - @id = @id.gsub(/\.git\Z/, "") - - render "go_import", layout: false - end - def repo_exists? project.repository_exists? && !project.empty_repo? end |