summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-08-11 09:17:31 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-08-11 09:17:31 +0200
commit279704fb41f74bf797bf2db5be0ed5a8d7889366 (patch)
treef377af05d05eaac8132f37a8f9f4782b42a795a8
parent95a3fe6907676109e1cd2f52ca8f5ad17e0d01d0 (diff)
downloadgitlab-279704fb41f74bf797bf2db5be0ed5a8d7889366.tar.gz
Fix URL for branch.unprotect
-rw-r--r--gitlab/v4/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index b71057f..e3780a9 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -566,7 +566,7 @@ class ProjectBranch(ObjectDeleteMixin, RESTObject):
GitlabAuthenticationError: If authentication is not correct
GitlabProtectError: If the branch could not be unprotected
"""
- path = '%s/%s/protect' % (self.manager.path, self.get_id())
+ path = '%s/%s/unprotect' % (self.manager.path, self.get_id())
self.manager.gitlab.http_put(path, **kwargs)
self._attrs['protected'] = False