File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -337,16 +337,14 @@ public function contributors($project_id)
337
337
}
338
338
339
339
/**
340
- * File content is base64 encoded and placed in the "content" index of the returning array.
341
- * You can then save the content with the tar.gz extension
342
- *
343
340
* @param int $project_id
344
341
* @param array $params
342
+ * @param string $format Options: "tar.gz", "zip", "tar.bz2" and "tar"
345
343
* @return mixed
346
344
*/
347
- public function archive ($ project_id , $ params = array ())
345
+ public function archive ($ project_id , $ params = array (), $ format = ' tar.gz ' )
348
346
{
349
- return $ this ->get ($ this ->getProjectPath ($ project_id , 'repository/archive ' ), $ params );
347
+ return $ this ->get ($ this ->getProjectPath ($ project_id , 'repository/archive. ' . $ format ), $ params );
350
348
}
351
349
352
350
/**
You can’t perform that action at this time.
0 commit comments