Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
9764ba6d
Commit
9764ba6d
authored
Feb 16, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create satellite for imported repo
parent
42ffbea8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app/contexts/projects/create_context.rb
app/contexts/projects/create_context.rb
+2
-0
app/views/projects/_new_form.html.haml
app/views/projects/_new_form.html.haml
+1
-1
No files found.
app/contexts/projects/create_context.rb
View file @
9764ba6d
...
...
@@ -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'
)
...
...
app/views/projects/_new_form.html.haml
View file @
9764ba6d
...
...
@@ -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