Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
87f0445b
Commit
87f0445b
authored
Oct 22, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow in robots namespaces and projectswith .git on it
parent
cfc6a8bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
changelogs/unreleased/36837-fj-fix-bug-robots-git-suffix.yml
changelogs/unreleased/36837-fj-fix-bug-robots-git-suffix.yml
+5
-0
public/robots.txt
public/robots.txt
+1
-1
spec/requests/robots_txt_spec.rb
spec/requests/robots_txt_spec.rb
+4
-2
No files found.
changelogs/unreleased/36837-fj-fix-bug-robots-git-suffix.yml
0 → 100644
View file @
87f0445b
---
title
:
Fix bug with robots and .git suffix
merge_request
:
45866
author
:
type
:
fixed
public/robots.txt
View file @
87f0445b
...
...
@@ -42,7 +42,7 @@ Disallow: /groups/*/group_members
# Project details
User-Agent: *
Disallow: /*/*.git
Disallow: /*/*.git
$
Disallow: /*/archive/
Disallow: /*/repository/archive*
Disallow: /*/activity
...
...
spec/requests/robots_txt_spec.rb
View file @
87f0445b
...
...
@@ -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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment