summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2020-03-19 07:58:18 +0100
committerGitHub <noreply@github.com>2020-03-19 07:58:18 +0100
commit4ffaf1dc0365690df810c99573f5737f635240e0 (patch)
tree7664f26b9d8863650471cd7cfa4d0b0d15508f9b /gitlab/v4/objects.py
parentad7e2bf7472668ffdcc85eec30db4139b92595a6 (diff)
parent9b16614ba6444b212b3021a741b9c184ac206af1 (diff)
downloadgitlab-4ffaf1dc0365690df810c99573f5737f635240e0.tar.gz
Merge pull request #1040 from nejch/test/project-export-import
test: update tests and params for project export/import
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index f832b71..9da9adf 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -4839,6 +4839,7 @@ class ProjectManager(CRUDMixin, RESTManager):
self,
file,
path,
+ name=None,
namespace=None,
overwrite=False,
override_params=None,
@@ -4868,6 +4869,8 @@ class ProjectManager(CRUDMixin, RESTManager):
if override_params:
for k, v in override_params.items():
data["override_params[%s]" % k] = v
+ if name is not None:
+ data["name"] = name
if namespace:
data["namespace"] = namespace
return self.gitlab.http_post(