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
325908ad
Commit
325908ad
authored
Apr 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove changes unnecessary changes from namespace model
parent
e9d5e95c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/models/namespace.rb
app/models/namespace.rb
+3
-3
No files found.
app/models/namespace.rb
View file @
325908ad
...
...
@@ -113,8 +113,8 @@ class Namespace < ActiveRecord::Base
end
def
move_dir
if
any_project_has_container_registry_
image
s?
raise
Gitlab
::
UpdatePathError
.
new
(
'Namespace cannot be moved, because at least one project has
image
s in container registry'
)
if
any_project_has_container_registry_
tag
s?
raise
Gitlab
::
UpdatePathError
.
new
(
'Namespace cannot be moved, because at least one project has
tag
s in container registry'
)
end
# Move the namespace directory in all storages paths used by member projects
...
...
@@ -149,7 +149,7 @@ class Namespace < ActiveRecord::Base
end
end
def
any_project_has_container_registry_
image
s?
def
any_project_has_container_registry_
tag
s?
projects
.
any?
(
&
:has_container_registry_tags?
)
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