Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
b0509b713a43
Commit
9764ba6d
authored
Feb 16, 2013
by
Dmitriy Zaporozhets
Browse files
create satellite for imported repo
parent
07aa90f1b465
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/contexts/projects/create_context.rb
View file @
b0509b71
...
...
@@ -38,6 +38,8 @@ def execute
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'
)
...
...
app/views/projects/_new_form.html.haml
View file @
b0509b71
...
...
@@ -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.
...
...
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