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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
fc5eb315
Commit
fc5eb315
authored
Apr 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses in code related to the registry
parent
baa00d54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects/registry/repositories_controller.rb
app/controllers/projects/registry/repositories_controller.rb
+1
-1
spec/features/security/project/public_access_spec.rb
spec/features/security/project/public_access_spec.rb
+1
-1
No files found.
app/controllers/projects/registry/repositories_controller.rb
View file @
fc5eb315
...
@@ -31,7 +31,7 @@ module Projects
...
@@ -31,7 +31,7 @@ module Projects
#
#
def
ensure_root_container_repository!
def
ensure_root_container_repository!
ContainerRegistry
::
Path
.
new
(
@project
.
full_path
).
tap
do
|
path
|
ContainerRegistry
::
Path
.
new
(
@project
.
full_path
).
tap
do
|
path
|
return
if
path
.
has_repository?
break
if
path
.
has_repository?
ContainerRepository
.
build_from_path
(
path
).
tap
do
|
repository
|
ContainerRepository
.
build_from_path
(
path
).
tap
do
|
repository
|
repository
.
save
if
repository
.
has_tags?
repository
.
save
if
repository
.
has_tags?
...
...
spec/features/security/project/public_access_spec.rb
View file @
fc5eb315
...
@@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do
...
@@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do
let
(
:container_repository
)
{
create
(
:container_repository
)
}
let
(
:container_repository
)
{
create
(
:container_repository
)
}
before
do
before
do
stub_container_registry_tags
(
repository: :any
,
tags
:[
'latest'
])
stub_container_registry_tags
(
repository: :any
,
tags:
[
'latest'
])
stub_container_registry_config
(
enabled:
true
)
stub_container_registry_config
(
enabled:
true
)
project
.
container_repositories
<<
container_repository
project
.
container_repositories
<<
container_repository
end
end
...
...
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