Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
def13f86fae4
Commit
78823675
authored
Aug 11, 2017
by
Gabriel Mazetto
Browse files
Prevent using gitlab import task when hashed storage is enabled
parent
b409379b7fa6
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/import.rake
View file @
def13f86
...
...
@@ -11,6 +11,12 @@ namespace :gitlab do
#
desc
"GitLab | Import bare repositories from repositories -> storages into GitLab project instance"
task
repos: :environment
do
if
Project
.
current_application_settings
.
hashed_storage_enabled
puts
'Cannot import repositories when Hashed Storage is enabled'
.
color
(
:red
)
exit
1
end
Gitlab
.
config
.
repositories
.
storages
.
each_value
do
|
repository_storage
|
git_base_path
=
repository_storage
[
'path'
]
repos_to_import
=
Dir
.
glob
(
git_base_path
+
'/**/*.git'
)
...
...
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