https://github.com/git-lfs/git-lfs/pull/3542
/cc @meks, @rymai, @mlapierre
Related: https://gitlab.com/gitlab-org/gitlab-ce/issues/57681