-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pushing LFS objects to GitHub fails #11
Comments
If I try to push via git CLI (which ships with git-lfs by default on windows) I get the following error
But if I fetch I see no other commits or remote reference updates. So it looks like the push is not fully rejected but somehow incomplete. |
From some more experiments I've got the impression that this is not caused by an imcomplet push through JGit, but also seem to happen when one pushes to a fork of a repository. At least in that case pushes of new LFS-objects to new branches lead to the same error with JGit and CLI git. Adding a
But then JGit fails with the following error if I try to push some LFS-objects:
I also debugged this from an J/EGit workspace, but I'm puzzled why the |
Version
6.9.0
Operating System
Windows
Bug description
Trying to push a commit to GitHub that contains a new Large File Storage (LFS) object fails with a message that says that the referenced LFS object is missing
But the object exists in the local LFS cache and I also debugged the code and verified that
LfsPrePushHook.uploadFile()
is called and succeeds for the file mentioned in the error message.Switching between the Apache Http and the JDK's http client makes no difference.
Actual behavior
Pushing failes with the described message.
Expected behavior
Push succeeds and the LFS objects are properly pushed along with the pointer file.
Relevant log output
Repository git@github.com:HannesWell/my.git.lfs.tests.git pre-receive hook declined error: GH008: Your push referenced at least 1 unknown Git LFS object: cdb81c2552ec215adc17feb7665f9b7532beec6735816a040798207dc0e71994 Try to push them with 'git lfs push --all'.
Other information
The repositories
.git/config
:My global
~/.gitconfig
The text was updated successfully, but these errors were encountered: