summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-07-17 13:30:06 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-07-17 13:30:06 +0200
commit99463287618b61f76d157b572a670e9237d80a43 (patch)
tree308986d4f6782b17d73565201782db3d024a8834 /app/helpers
parent9c1a3bce9d57cb03f86c9c1abc7f2a7c78d29f37 (diff)
downloadgitlab-ce-99463287618b61f76d157b572a670e9237d80a43.tar.gz
Remove sanitize_repo_path
This method is unneeded given its been pushed to Gitaly, through https://gitlab.com/gitlab-org/gitaly/merge_requests/780 Closes https://gitlab.com/gitlab-org/gitaly/issues/1235
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index b0f381db5ab..221f1aa9dd8 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -413,20 +413,6 @@ module ProjectsHelper
@ref || @repository.try(:root_ref)
end
- # Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/1235
- def sanitize_repo_path(project, message)
- return '' unless message.present?
-
- exports_path = File.join(Settings.shared['path'], 'tmp/project_exports')
- filtered_message = message.strip.gsub(exports_path, "[REPO EXPORT PATH]")
-
- disk_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do
- Gitlab.config.repositories.storages[project.repository_storage].legacy_disk_path
- end
-
- filtered_message.gsub(disk_path.chomp('/'), "[REPOS PATH]")
- end
-
def project_child_container_class(view_path)
view_path == "projects/issues/issues" ? "prepend-top-default" : "project-show-#{view_path}"
end