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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
32e6193a
Commit
32e6193a
authored
Feb 08, 2022
by
Zehua Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow specifying project name on importing an exported GitLab project
Changelog: fixed
parent
d417dfd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/import/gitlab_projects_controller.rb
app/controllers/import/gitlab_projects_controller.rb
+1
-1
spec/features/projects/import_export/import_file_spec.rb
spec/features/projects/import_export/import_file_spec.rb
+1
-1
No files found.
app/controllers/import/gitlab_projects_controller.rb
View file @
32e6193a
...
...
@@ -38,7 +38,7 @@ class Import::GitlabProjectsController < Import::BaseController
def
project_params
params
.
permit
(
:path
,
:namespace_id
,
:file
:
name
,
:
path
,
:namespace_id
,
:file
)
end
...
...
spec/features/projects/import_export/import_file_spec.rb
View file @
32e6193a
...
...
@@ -41,7 +41,7 @@ RSpec.describe 'Import/Export - project import integration test', :js do
project
=
Project
.
last
expect
(
project
).
not_to
be_nil
expect
(
page
).
to
have_content
(
"Project '
test-project-path
' is being imported"
)
expect
(
page
).
to
have_content
(
"Project '
Test Project Name
' is being imported"
)
end
it
'invalid project'
do
...
...
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