diff options
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 2 |
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 |