Pushing to a mirror fails when LFS objects are involved
Summary
Set up a several push mirrors today from our on-prem omnibus installation to gitlab.com. Any projects that include LFS objects file with errors such as:
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To https://gitlab.com/iitp/siti/linuxnode.git
! [remote rejected] master -> master (pre-receive hook declined)
! [remote rejected] dev -> dev (pre-receive hook declined)
! [remote rejected] wasuser_umask -> wasuser_umask (pre-receive hook declined)
error: failed to push some refs to 'https://*****:*****@gitlab.com/iitp/siti/linuxnode.git'
Steps to reproduce
- enable push mirror from a project with LFS objects
- Wait for a push or trigger it immediately
- Gitlab responds with error above
What is the current bug behavior?
Push to mirror fails with error above
What is the expected correct behavior?
Push should complete successfully and the GUI even implies that if LFS objects do exist then they will not be synched (not that nothing will sync)