diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-01 15:27:27 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-01 15:27:27 +0100 |
commit | d415cc0929aed8bf95cbbb54f64d457e42d77696 (patch) | |
tree | 60c63d8e511e84ed401c6d4c41221d72823f3251 /gitlab/v4/objects.py | |
parent | 5082879dcfbe322bb16e4c2387c25ec4f4407cb1 (diff) | |
download | gitlab-d415cc0929aed8bf95cbbb54f64d457e42d77696.tar.gz |
Update the repository_blob documentation
Fixes #312
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index a57adff..5a3f17c 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2024,7 +2024,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): @cli.register_custom_action('Project', ('sha', )) @exc.on_http_error(exc.GitlabGetError) def repository_blob(self, sha, **kwargs): - """Return a blob by blob SHA. + """Return a file by blob SHA. Args: sha(str): ID of the blob @@ -2035,7 +2035,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabGetError: If the server failed to perform the request Returns: - str: The blob metadata + dict: The blob content and metadata """ path = '/projects/%s/repository/blobs/%s' % (self.get_id(), sha) |