Description
The "Releases" page lets you download an archive (from git-archive
?). It would be handy if this worked with git-annex datasets too, since then we could share people a link like https://data.neuropoly.org/neuropoly/some-project/archive/1.0.0.zip and they could get a versioned the data without having to install or learn git-annex (with gitea, GET /neuropoly/some-project/archive/1.0.0.zip
downloads as some-project-1.0.0.zip
, preserving the version number, so long as the receiver uses a standard browser or curl -LJO
).
It's good if people do want to learn and use git-annex, but some applications -- imagine, deploying training sets to clusters, simple exploratory work, etc -- don't need the extra headache.
I'll note that we currently can't do this with e.g. https://github.com/spine-generic/data-multi-subject/releases/tag/r20230223; there, the download links give a small <1MB .zip containing mostly annex pointers.
Plan
- Look into how GitHub handles git-lfs files when archiving
- Look into how Gitea handles git-lfs files when archiving
- Patch gitea to replace annex pointers with their content, if available, when exporting