diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 23:20:46 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 23:20:46 +0200 |
| commit | 2dd84e8170502ded3fb8f9b62e0571351ad6e0be (patch) | |
| tree | 2794c72b3b3e8794f9f7313c8551827cad22b677 /gitlab | |
| parent | 0d1ace10f160f69ed7f20d5ddaa229361641e4d9 (diff) | |
| download | gitlab-2dd84e8170502ded3fb8f9b62e0571351ad6e0be.tar.gz | |
[v4] repository tree: s/ref_name/ref/
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 54369d9..6944046 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1862,12 +1862,12 @@ class Project(GitlabObject): ('variables', 'ProjectVariableManager', [('project_id', 'id')]), ) - def repository_tree(self, path='', ref_name='', **kwargs): + def repository_tree(self, path='', ref='', **kwargs): """Return a list of files in the repository. Args: path (str): Path of the top folder (/ by default) - ref_name (str): Reference to a commit or branch + ref (str): Reference to a commit or branch Returns: str: The json representation of the tree. @@ -1880,8 +1880,8 @@ class Project(GitlabObject): params = [] if path: params.append(urllib.urlencode({'path': path})) - if ref_name: - params.append("ref_name=%s" % ref_name) + if ref: + params.append("ref=%s" % ref) if params: url += '?' + "&".join(params) r = self.gitlab._raw_get(url, **kwargs) |
