Skip to content

Commit 7e7b29c

Browse files
author
Gauvain Pocentek
committed
ProjectBranch: commit is an other object
1 parent b4bc9df commit 7e7b29c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ class ProjectBranch(GitlabObject):
584584
canCreate = False
585585
requiredGetAttrs = ['project_id']
586586
requiredListAttrs = ['project_id']
587+
_constructorTypes = {'commit': 'ProjectCommit'}
587588

588589
def protect(self, protect=True):
589590
url = self._url % {'project_id': self.project_id}

0 commit comments

Comments
 (0)