GitHub and GitLab will prefix archive payloads with the name of the repo and the refspec. This patch naively applies a prefix in similar fashion.
The refspec might contain filesystem path separators, like a forward
slash (/). GitHub and GitLab replace that with a hyphen (-). This
patch applies that same replacement.
Signed-off-by: Shawn Webb shawn.webb@hardenedbsd.org
GitHub and GitLab will prefix archive payloads with the name of the repo and the refspec. This patch naively applies a prefix in similar fashion.
The refspec might contain filesystem path separators, like a forward
slash (/). GitHub and GitLab replace that with a hyphen (-). This
patch applies that same replacement.
Signed-off-by: Shawn Webb shawn.webb@hardenedbsd.org
Add support for:
- ZIP and TAR archives.
- Disabling prefix as a workaround.
Fix lint.
Address Fintan’s review:
impl Default for PrefixQuery
Address Rudolfs’ review:
- Forgot to handle MIME types.
- Typos