From 279704fb41f74bf797bf2db5be0ed5a8d7889366 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Fri, 11 Aug 2017 09:17:31 +0200 Subject: Fix URL for branch.unprotect --- gitlab/v4/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitlab') 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 -- cgit v1.2.1