diff options
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 6aa44d1..94bf1d9 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1556,7 +1556,14 @@ class Project(GitlabObject): raise_error_from_response(r, GitlabListError) return r.json() + def archive(self, sha=None, **kwargs): + warnings.warn("`archive` is deprecated, " + "use `repository_archive` instead", + DeprecationWarning) + return self.repository_archive(path, ref_name, **kwargs) + + def repository_archive(self, sha=None, **kwargs): """Return a tarball of the repository. Args: |