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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
c3b6eadc
Commit
c3b6eadc
authored
Jun 24, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix params
parent
46b89a27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/controllers/import/gitlab_projects_controller.rb
app/controllers/import/gitlab_projects_controller.rb
+2
-2
No files found.
app/controllers/import/gitlab_projects_controller.rb
View file @
c3b6eadc
...
@@ -12,9 +12,9 @@ class Import::GitlabProjectsController < Import::BaseController
...
@@ -12,9 +12,9 @@ class Import::GitlabProjectsController < Import::BaseController
return
redirect_back_or_default
(
options:
{
alert:
"You need to upload a GitLab project export archive."
})
return
redirect_back_or_default
(
options:
{
alert:
"You need to upload a GitLab project export archive."
})
end
end
imported_file
=
params
[
:file
].
path
+
"-import"
imported_file
=
p
roject_p
arams
[
:file
].
path
+
"-import"
FileUtils
.
copy_entry
(
params
[
:file
].
path
,
imported_file
)
FileUtils
.
copy_entry
(
p
roject_p
arams
[
:file
].
path
,
imported_file
)
@project
=
Gitlab
::
ImportExport
::
ProjectCreator
.
new
(
project_params
[
:namespace_id
],
@project
=
Gitlab
::
ImportExport
::
ProjectCreator
.
new
(
project_params
[
:namespace_id
],
current_user
,
current_user
,
...
...
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