Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3461904

Browse filesBrowse files
author
Gauvain Pocentek
committed
Project import: fix the override_params parameter
Closes python-gitlab#552
1 parent a139179 commit 3461904
Copy full SHA for 3461904

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/objects.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3605,7 +3605,8 @@ def import_project(self, file, path, namespace=None, overwrite=False,
36053605
'overwrite': overwrite
36063606
}
36073607
if override_params:
3608-
data['override_params'] = override_params
3608+
for k, v in override_params.items():
3609+
data['override_params[%s]' % k] = v
36093610
if namespace:
36103611
data['namespace'] = namespace
36113612
return self.gitlab.http_post('/projects/import', post_data=data,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.