diff options
author | Stan Hu <stanhu@gmail.com> | 2016-03-12 07:49:16 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-03-12 07:49:16 -0800 |
commit | 2563213ccf3c1b26d58292570f9170f73034b221 (patch) | |
tree | 758999ceba063ee65440bbbea270e11bfa65e394 | |
parent | cc065fbeaa8b5e480d6ba5349198042e8a84b011 (diff) | |
download | gitlab-ce-2563213ccf3c1b26d58292570f9170f73034b221.tar.gz |
Remove existing go_import.html.haml implementation
-rw-r--r-- | app/controllers/projects_controller.rb | 11 | ||||
-rw-r--r-- | app/views/projects/go_import.html.haml | 5 |
2 files changed, 0 insertions, 16 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 diff --git a/app/views/projects/go_import.html.haml b/app/views/projects/go_import.html.haml deleted file mode 100644 index 87ac75a350f..00000000000 --- a/app/views/projects/go_import.html.haml +++ /dev/null @@ -1,5 +0,0 @@ -!!! 5 -%html - %head - - web_url = [Gitlab.config.gitlab.url, @namespace, @id].join('/') - %meta{name: "go-import", content: "#{web_url.split('://')[1]} git #{web_url}.git"} |