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:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-07-24 04:53:06 +0300
committerLuke Duncalfe <lduncalfe@eml.cc>2019-07-26 02:49:36 +0300
commit634a03bf608eaf86ecf14b4f44fa30e62905ac6b (patch)
tree4daf3593529dc95619cea5526c56e854770e3296 /lib/gitlab
parent513daf3dd6e48fe935ce5f062f8ffd201aee1503 (diff)
Redirect project.wiki.git to project wiki home
https://gitlab.com/gitlab-org/gitlab-ce/issues/19186
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/path_regex.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/path_regex.rb b/lib/gitlab/path_regex.rb
index a13b3f9e069..f96466b2b00 100644
--- a/lib/gitlab/path_regex.rb
+++ b/lib/gitlab/path_regex.rb
@@ -175,6 +175,10 @@ module Gitlab
@project_git_route_regex ||= /#{project_route_regex}\.git/.freeze
end
+ def project_wiki_git_route_regex
+ @project_wiki_git_route_regex ||= /#{PATH_REGEX_STR}\.wiki/.freeze
+ end
+
def full_namespace_path_regex
@full_namespace_path_regex ||= %r{\A#{full_namespace_route_regex}/\z}
end