Commit 7b884854 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '36837-fj-fix-bug-robots-git-suffix' into 'master'

Fix bug in robots rule with .git suffix

See merge request gitlab-org/gitlab!45866
parents e071343a 87f0445b
---
title: Fix bug with robots and .git suffix
merge_request: 45866
author:
type: fixed
......@@ -42,7 +42,7 @@ Disallow: /groups/*/group_members
# Project details
User-Agent: *
Disallow: /*/*.git
Disallow: /*/*.git$
Disallow: /*/archive/
Disallow: /*/repository/archive*
Disallow: /*/activity
......
......@@ -13,7 +13,8 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it 'allows the requests' do
requests = [
'/users/sign_in'
'/users/sign_in',
'/namespace/subnamespace/design.gitlab.com'
]
requests.each do |request|
......@@ -60,7 +61,8 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
'/foo/bar/protected_branches',
'/foo/bar/uploads/foo',
'/foo/bar/project_members',
'/foo/bar/settings'
'/foo/bar/settings',
'/namespace/subnamespace/design.gitlab.com/settings'
]
requests.each do |request|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment