summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-10-08 09:06:56 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-10-08 09:06:56 +0200
commitf3f300c493c3a944e57b212088f5719474b98081 (patch)
tree353f109621c8df6bcaa0ec08547744bf4eafc698 /gitlab
parent72664c45baa59507028aeb3986bba42c75c3cbb8 (diff)
downloadgitlab-f3f300c493c3a944e57b212088f5719474b98081.tar.gz
Tags release description: support / in tag names
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/v4/objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 88b4a3b..0d8dffd 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1020,7 +1020,8 @@ class ProjectTag(ObjectDeleteMixin, RESTObject):
GitlabCreateError: If the server fails to create the release
GitlabUpdateError: If the server fails to update the release
"""
- path = '%s/%s/release' % (self.manager.path, self.get_id())
+ id = self.get_id().replace('/', '%2F')
+ path = '%s/%s/release' % (self.manager.path, id)
data = {'description': description}
if self.release is None:
try: