summaryrefslogtreecommitdiff
path: root/config/routes/git_http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/git_http.rb')
-rw-r--r--config/routes/git_http.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes/git_http.rb b/config/routes/git_http.rb
index 715d4b5cc59..6899a89cc7d 100644
--- a/config/routes/git_http.rb
+++ b/config/routes/git_http.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
scope(path: '*repository_path', format: false) do
constraints(repository_path: Gitlab::PathRegex.repository_git_route_regex) do
scope(module: :repositories) do
@@ -42,7 +44,7 @@ scope(path: '*repository_path', format: false) do
wiki_redirect = redirect do |params, request|
container_path = params[:repository_path].delete_suffix('.wiki.git')
path = File.join(container_path, '-', 'wikis')
- path << "?#{request.query_string}" unless request.query_string.blank?
+ path += "?#{request.query_string}" unless request.query_string.blank?
path
end
@@ -54,7 +56,7 @@ scope(path: '*repository_path', format: false) do
constraints(repository_path: Gitlab::PathRegex.repository_route_regex) do
ref_redirect = redirect do |params, request|
path = "#{params[:repository_path]}.git/info/refs"
- path << "?#{request.query_string}" unless request.query_string.blank?
+ path += "?#{request.query_string}" unless request.query_string.blank?
path
end