File tree 2 files changed +9
-2
lines changed
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):
1556
1556
raise_error_from_response (r , GitlabListError )
1557
1557
return r .json ()
1558
1558
1559
+
1559
1560
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 ):
1560
1567
"""Return a tarball of the repository.
1561
1568
1562
1569
Args:
Original file line number Diff line number Diff line change 152
152
assert (tree [0 ]['name' ] == 'README.rst' )
153
153
blob = admin_project .repository_blob ('master' , 'README.rst' )
154
154
assert (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' )
157
157
assert (archive1 == archive2 )
158
158
159
159
# labels
You can’t perform that action at this time.
0 commit comments