Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
2e8db0df
Commit
2e8db0df
authored
12 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Download
Plain Diff
Merge pull request #2932 from escaped/repo-import-4.1-fix
Repo import 4.1 fix (empty repositories)
parents
0ac9dd32
09d97732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/tasks/gitlab/import.rake
lib/tasks/gitlab/import.rake
+2
-1
No files found.
lib/tasks/gitlab/import.rake
View file @
2e8db0df
...
...
@@ -42,9 +42,10 @@ namespace :gitlab do
project_params
=
{
:name
=>
path
,
:namespace_id
=>
Namespace
.
global_id
,
}
project
=
Project
.
c
reate
_by_
user
(
project_params
,
user
)
project
=
Project
s
::
C
reate
Context
.
new
(
user
,
project_params
).
execute
if
project
.
valid?
puts
" * Created
#{
project
.
name
}
(
#{
repo_name
}
)"
.
green
...
...
This diff is collapsed.
Click to expand it.
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