Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-16 23:47:43 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-16 23:47:43 +0400
commit9764ba6df2357ee93b9d4163f4011552be32de25 (patch)
treefcbbc9759fac29033be07c4b174de566312ae601 /app
parent42ffbea8e0b6db016b60866c8b2b1d8b28dc4d71 (diff)
create satellite for imported repo
Diffstat (limited to 'app')
-rw-r--r--app/contexts/projects/create_context.rb2
-rw-r--r--app/views/projects/_new_form.html.haml2
2 files changed, 3 insertions, 1 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')
diff --git a/app/views/projects/_new_form.html.haml b/app/views/projects/_new_form.html.haml
index ba3ccc421cd..b6503636890 100644
--- a/app/views/projects/_new_form.html.haml
+++ b/app/views/projects/_new_form.html.haml
@@ -28,7 +28,7 @@
.input
= f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git'
.light
- URL should be clonable
+ URL must be clonable
%p.padded
New projects are private by default. You choose who can see the project and commit to repository.