diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-16 21:47:43 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-16 21:47:43 +0200 |
commit | 9764ba6df2357ee93b9d4163f4011552be32de25 (patch) | |
tree | fcbbc9759fac29033be07c4b174de566312ae601 /app/contexts | |
parent | 42ffbea8e0b6db016b60866c8b2b1d8b28dc4d71 (diff) | |
download | gitlab-ce-9764ba6df2357ee93b9d4163f4011552be32de25.tar.gz |
create satellite for imported repo
Diffstat (limited to 'app/contexts')
-rw-r--r-- | app/contexts/projects/create_context.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/contexts/projects/create_context.rb b/app/contexts/projects/create_context.rb index 629c5294754..fe8dde8c954 100644 --- a/app/contexts/projects/create_context.rb +++ b/app/contexts/projects/create_context.rb @@ -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') |