Git LFS: Support for HTTP git push to secondary
Description
With 11.0, we ship automatic redirects on git fetch
and git push
for HTTP (with SSH support coming up in a later release this year).
In this release, redirects for Git LFS are not supported yet since LFS does not add the necessary auth header to the redirect.
With 11.1, we are going to add support for Git LFS on HTTP redirects.
Proposal
- File issue for the Git LFS maintainers and support on reviewing and testing. Upon detecting a HTTP 302 redirect, fails to prompt/add the necessary authentication headers which results in a HTTP 401.
- Issue
🐛 : https://github.com/git-lfs/git-lfs/issues/3025 - Release tag that includes fix
✅ : https://github.com/git-lfs/git-lfs/releases/tag/v2.4.2
- Issue
- On GitLab side, redirect to primary logic needs to be applied to LFS endpoints
Edited by Andreas Kämmerle