create satellite for imported repo
This commit is contained in:
parent
42ffbea8e0
commit
9764ba6df2
2 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,8 @@ module Projects
|
|||
if @project.valid? && @project.import_url.present?
|
||||
shell = Gitlab::Shell.new
|
||||
if shell.import_repository(@project.path_with_namespace, @project.import_url)
|
||||
# We should create satellite for imported repo
|
||||
@project.satellite.create unless @project.satellite.exists?
|
||||
true
|
||||
else
|
||||
@project.errors.add(:import_url, 'cannot clone repo')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue