summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2013-06-22 10:11:35 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2013-06-22 10:11:35 +0200
commit7e7b29c02cc8a1015fb56a7dac6488cf24873922 (patch)
tree653a1d793595c54b4aeea63a9f7822a286372708 /gitlab.py
parentb4bc9dff52d2610523cefa47fd0d0aaf8f2d12c1 (diff)
downloadgitlab-7e7b29c02cc8a1015fb56a7dac6488cf24873922.tar.gz
ProjectBranch: commit is an other object
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab.py b/gitlab.py
index 7699563..515eb60 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -584,6 +584,7 @@ class ProjectBranch(GitlabObject):
canCreate = False
requiredGetAttrs = ['project_id']
requiredListAttrs = ['project_id']
+ _constructorTypes = {'commit': 'ProjectCommit'}
def protect(self, protect=True):
url = self._url % {'project_id': self.project_id}