Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 279704f

Browse files
author
Gauvain Pocentek
committedAug 11, 2017
Fix URL for branch.unprotect
1 parent 95a3fe6 commit 279704f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎gitlab/v4/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def unprotect(self, **kwargs):
566566
GitlabAuthenticationError: If authentication is not correct
567567
GitlabProtectError: If the branch could not be unprotected
568568
"""
569-
path = '%s/%s/protect' % (self.manager.path, self.get_id())
569+
path = '%s/%s/unprotect' % (self.manager.path, self.get_id())
570570
self.manager.gitlab.http_put(path, **kwargs)
571571
self._attrs['protected'] = False
572572

0 commit comments

Comments
 (0)
Failed to load comments.