We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a3fe6 commit 279704fCopy full SHA for 279704f
gitlab/v4/objects.py
@@ -566,7 +566,7 @@ def unprotect(self, **kwargs):
566
GitlabAuthenticationError: If authentication is not correct
567
GitlabProtectError: If the branch could not be unprotected
568
"""
569
- path = '%s/%s/protect' % (self.manager.path, self.get_id())
+ path = '%s/%s/unprotect' % (self.manager.path, self.get_id())
570
self.manager.gitlab.http_put(path, **kwargs)
571
self._attrs['protected'] = False
572
0 commit comments