summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 21:58:55 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 21:58:55 +0100
commit37912c1ccd395b2831be0b6f4155264a1ebcb1fe (patch)
treeede1362b45671146d36657d8077a158c2f10d5c2 /gitlab/__init__.py
parent2bf9794c81487883c346850a79d6b7db1295fd95 (diff)
parent77d34b353a1dfb1892de316a58b461c26eead66b (diff)
downloadgitlab-37912c1ccd395b2831be0b6f4155264a1ebcb1fe.tar.gz
Merge branch 'fgouteroux-add_fork_support'
Diffstat (limited to 'gitlab/__init__.py')
-rw-r--r--gitlab/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 64d45e5..4de778a 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -451,6 +451,13 @@ class Gitlab(object):
DeprecationWarning)
return UserProject._get_list_or_object(self, id, **kwargs)
+ def ProjectFork(self, id=None, **kwargs):
+ """Fork a project for a user.
+
+ id must be a dict.
+ """
+ return ProjectFork._get_list_or_object(self, id, **kwargs)
+
def _list_projects(self, url, **kwargs):
r = self._raw_get(url, **kwargs)
raise_error_from_response(r, GitlabListError)