File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1556,7 +1556,14 @@ def repository_contributors(self):
15561556 raise_error_from_response (r , GitlabListError )
15571557 return r .json ()
15581558
1559+
15591560 def archive (self , sha = None , ** kwargs ):
1561+ warnings .warn ("`archive` is deprecated, "
1562+ "use `repository_archive` instead" ,
1563+ DeprecationWarning )
1564+ return self .repository_archive (path , ref_name , ** kwargs )
1565+
1566+ def repository_archive (self , sha = None , ** kwargs ):
15601567 """Return a tarball of the repository.
15611568
15621569 Args:
Original file line number Diff line number Diff line change 152152assert (tree [0 ]['name' ] == 'README.rst' )
153153blob = admin_project .repository_blob ('master' , 'README.rst' )
154154assert (blob == 'Initial content' )
155- archive1 = admin_project .archive ()
156- archive2 = admin_project .archive ('master' )
155+ archive1 = admin_project .repository_archive ()
156+ archive2 = admin_project .repository_archive ('master' )
157157assert (archive1 == archive2 )
158158
159159# labels
You can’t perform that action at this time.
0 commit comments