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
Léo-Paul Géneau
gitlab-ce
Commits
e7757486
Commit
e7757486
authored
Aug 29, 2017
by
Simon Knox
Committed by
Jose Ivan Vargas
Aug 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve conflicts from
4c7449e4
parent
4c7449e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
app/controllers/import/gitlab_projects_controller.rb
app/controllers/import/gitlab_projects_controller.rb
+0
-4
spec/features/projects/import_export/import_file_spec.rb
spec/features/projects/import_export/import_file_spec.rb
+1
-9
No files found.
app/controllers/import/gitlab_projects_controller.rb
View file @
e7757486
...
@@ -12,9 +12,6 @@ class Import::GitlabProjectsController < Import::BaseController
...
@@ -12,9 +12,6 @@ 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
<<<<<<<
HEAD
@project
=
::
Projects
::
GitlabProjectsImportService
.
new
(
current_user
,
project_params
).
execute
=======
import_upload_path
=
Gitlab
::
ImportExport
.
import_upload_path
(
filename:
tmp_filename
)
import_upload_path
=
Gitlab
::
ImportExport
.
import_upload_path
(
filename:
tmp_filename
)
FileUtils
.
mkdir_p
(
File
.
dirname
(
import_upload_path
))
FileUtils
.
mkdir_p
(
File
.
dirname
(
import_upload_path
))
...
@@ -24,7 +21,6 @@ class Import::GitlabProjectsController < Import::BaseController
...
@@ -24,7 +21,6 @@ class Import::GitlabProjectsController < Import::BaseController
current_user
,
current_user
,
import_upload_path
,
import_upload_path
,
project_params
[
:path
]).
execute
project_params
[
:path
]).
execute
>>>>>>>
04
a0f226c4
...
Merge
branch
'race-condition-in-project-uploads-fix-9-4'
into
'security-9-4'
if
@project
.
saved?
if
@project
.
saved?
redirect_to
(
redirect_to
(
...
...
spec/features/projects/import_export/import_file_spec.rb
View file @
e7757486
...
@@ -30,17 +30,9 @@ feature 'Import/Export - project import integration test', js: true do
...
@@ -30,17 +30,9 @@ feature 'Import/Export - project import integration test', js: true do
expect
(
page
).
to
have_content
(
'Import an exported GitLab project'
)
expect
(
page
).
to
have_content
(
'Import an exported GitLab project'
)
expect
(
URI
.
parse
(
current_url
).
query
).
to
eq
(
"namespace_id=
#{
namespace
.
id
}
&path=test-project-path"
)
expect
(
URI
.
parse
(
current_url
).
query
).
to
eq
(
"namespace_id=
#{
namespace
.
id
}
&path=test-project-path"
)
expect
(
Gitlab
::
ImportExport
).
to
receive
(
:import_upload_path
).
with
(
filename:
/\A\h{32}_test-project-path\z/
).
and_call_original
<<<<<<<
HEAD
attach_file
(
'file'
,
file
)
=======
expect
(
page
).
to
have_content
(
'GitLab project export'
)
expect
(
URI
.
parse
(
current_url
).
query
).
to
eq
(
"namespace_id=
#{
namespace
.
id
}
&path=test-project-path"
)
expect
(
Gitlab
::
ImportExport
).
to
receive
(
:import_upload_path
).
with
(
filename:
/\A[0-9a-f]{32}_test_project_export\.tar\.gz\z/
).
and_call_original
expect
(
Gitlab
::
ImportExport
).
to
receive
(
:import_upload_path
).
with
(
filename:
/\A[0-9a-f]{32}_test_project_export\.tar\.gz\z/
).
and_call_original
attach_file
(
'file'
,
file
)
attach_file
(
'file'
,
file
)
>>>>>>>
04
a0f226c4
...
Merge
branch
'race-condition-in-project-uploads-fix-9-4'
into
'security-9-4'
expect
{
click_on
'Import project'
}.
to
change
{
Project
.
count
}.
by
(
1
)
expect
{
click_on
'Import project'
}.
to
change
{
Project
.
count
}.
by
(
1
)
...
...
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