@@ -1128,7 +1128,7 @@ def content(self, streamed=False, action=None, chunk_size=1024, **kwargs):
1128
1128
"""
1129
1129
path = '/snippets/%s/raw' % self .get_id ()
1130
1130
result = self .manager .gitlab .http_get (path , streamed = streamed ,
1131
- ** kwargs )
1131
+ raw = True , ** kwargs )
1132
1132
return utils .response_content (result , streamed , action , chunk_size )
1133
1133
1134
1134
@@ -1365,7 +1365,7 @@ def artifacts(self, streamed=False, action=None, chunk_size=1024,
1365
1365
"""
1366
1366
path = '%s/%s/artifacts' % (self .manager .path , self .get_id ())
1367
1367
result = self .manager .gitlab .http_get (path , streamed = streamed ,
1368
- ** kwargs )
1368
+ raw = True , ** kwargs )
1369
1369
return utils .response_content (result , streamed , action , chunk_size )
1370
1370
1371
1371
@cli .register_custom_action ('ProjectJob' )
@@ -1393,7 +1393,7 @@ def artifact(self, path, streamed=False, action=None, chunk_size=1024,
1393
1393
"""
1394
1394
path = '%s/%s/artifacts/%s' % (self .manager .path , self .get_id (), path )
1395
1395
result = self .manager .gitlab .http_get (path , streamed = streamed ,
1396
- ** kwargs )
1396
+ raw = True , ** kwargs )
1397
1397
return utils .response_content (result , streamed , action , chunk_size )
1398
1398
1399
1399
@cli .register_custom_action ('ProjectJob' )
@@ -1419,7 +1419,7 @@ def trace(self, streamed=False, action=None, chunk_size=1024, **kwargs):
1419
1419
"""
1420
1420
path = '%s/%s/trace' % (self .manager .path , self .get_id ())
1421
1421
result = self .manager .gitlab .http_get (path , streamed = streamed ,
1422
- ** kwargs )
1422
+ raw = True , ** kwargs )
1423
1423
return utils .response_content (result , streamed , action , chunk_size )
1424
1424
1425
1425
@@ -2654,7 +2654,7 @@ def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024,
2654
2654
path = '%s/%s/raw' % (self .path , file_path )
2655
2655
query_data = {'ref' : ref }
2656
2656
result = self .gitlab .http_get (path , query_data = query_data ,
2657
- streamed = streamed , ** kwargs )
2657
+ streamed = streamed , raw = True , ** kwargs )
2658
2658
return utils .response_content (result , streamed , action , chunk_size )
2659
2659
2660
2660
@@ -2897,7 +2897,7 @@ def content(self, streamed=False, action=None, chunk_size=1024, **kwargs):
2897
2897
"""
2898
2898
path = "%s/%s/raw" % (self .manager .path , self .get_id ())
2899
2899
result = self .manager .gitlab .http_get (path , streamed = streamed ,
2900
- ** kwargs )
2900
+ raw = True , ** kwargs )
2901
2901
return utils .response_content (result , streamed , action , chunk_size )
2902
2902
2903
2903
@@ -3174,7 +3174,7 @@ def download(self, streamed=False, action=None, chunk_size=1024, **kwargs):
3174
3174
"""
3175
3175
path = '/projects/%d/export/download' % self .project_id
3176
3176
result = self .manager .gitlab .http_get (path , streamed = streamed ,
3177
- ** kwargs )
3177
+ raw = True , ** kwargs )
3178
3178
return utils .response_content (result , streamed , action , chunk_size )
3179
3179
3180
3180
@@ -3315,7 +3315,7 @@ def repository_raw_blob(self, sha, streamed=False, action=None,
3315
3315
"""
3316
3316
path = '/projects/%s/repository/blobs/%s/raw' % (self .get_id (), sha )
3317
3317
result = self .manager .gitlab .http_get (path , streamed = streamed ,
3318
- ** kwargs )
3318
+ raw = True , ** kwargs )
3319
3319
return utils .response_content (result , streamed , action , chunk_size )
3320
3320
3321
3321
@cli .register_custom_action ('Project' , ('from_' , 'to' ))
@@ -3391,7 +3391,8 @@ def repository_archive(self, sha=None, streamed=False, action=None,
3391
3391
if sha :
3392
3392
query_data ['sha' ] = sha
3393
3393
result = self .manager .gitlab .http_get (path , query_data = query_data ,
3394
- streamed = streamed , ** kwargs )
3394
+ raw = True , streamed = streamed ,
3395
+ ** kwargs )
3395
3396
return utils .response_content (result , streamed , action , chunk_size )
3396
3397
3397
3398
@cli .register_custom_action ('Project' , ('forked_from_id' , ))
@@ -3674,7 +3675,7 @@ def snapshot(self, wiki=False, streamed=False, action=None,
3674
3675
"""
3675
3676
path = '/projects/%d/snapshot' % self .get_id ()
3676
3677
result = self .manager .gitlab .http_get (path , streamed = streamed ,
3677
- ** kwargs )
3678
+ raw = True , ** kwargs )
3678
3679
return utils .response_content (result , streamed , action , chunk_size )
3679
3680
3680
3681
@cli .register_custom_action ('Project' , ('scope' , 'search' ))
0 commit comments