Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Generate a prefix for raw downloads
Merged shawn.webb opened 4 days ago

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

shawn.webb opened with revision 94c43baa on base d0a012dc +2 -0 4 days ago

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

lorenz pushed revision 2 8045c1f5 on base d0a012dc +146 -48 3 days ago

Add support for:

  • ZIP and TAR archives.
  • Disabling prefix as a workaround.
lorenz pushed revision 3 a6d672cb on base d0a012dc +146 -48 3 days ago

Fix lint.

lorenz pushed revision 4 f0feb18e on base d0a012dc +154 -49 3 days ago

Address Fintan’s review:

  • impl Default for PrefixQuery

Address Rudolfs’ review:

  • Forgot to handle MIME types.
  • Typos
rudolfs accepted 3 days ago
rudolfs merged revision f0feb18e at ad8b0699 3 days ago