LFS mirroring support for legacy batch _links responses #31512
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Milestone
Feature Description
There are LFS server implementations in the wild which have batch API responses in an older/deprecated schema. Recent versions of Jfrog Artifactory, as well as Microsoft TFS cannot have their LFS objects mirrored into Gitea because they serve a batch API and the 'download' action in responses is not honored because it's under the field
_links
instead ofactions
.The most recent version of git-lfs still supports this 'deprecated' field: https://github.com/git-lfs/git-lfs/blob/main/tq/transfer.go#L56 , so a
git lfs pull
would work from one of the servers above using the native client, but not with Gitea.I believe Gitea should support both fields to keep parity with native git-lfs clients until such time as they deprecate it (forcing servers like Artifactory to update their responses).
Screenshots
No response
The text was updated successfully, but these errors were encountered: