Create an archive of files from a named tree.
Table C.11: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
gitPath | String | Path to Git binary | /usr/bin/git | No |
repository | String | The repository. | n/a | One of these attributes is required. |
remoterepo | String | The remote repository. | n/a | |
treeish | String | The tree or commit to produce an archive for. | n/a | Yes |
output | String | Write the archive to file. | n/a | No |
prefix | String | Prepend prefix to each filename in the archive. | n/a | No |
format | String | Format of the resulting archive: tar or zip. If this option is not given, and the output file is specified, the format is inferred from the filename if possible (e.g. writing to "foo.zip" makes the output to be in the zip format). Otherwise the output format is tar | n/a | No |