Community
Participate
Working Groups
Steps to reproduce: 1. Configure repository to use Builtin LFS. 2. Delete any branch and push it to remote repository. git.branchDelete().setBranchNames(branch).setForce(true).call(); git.push().setRefSpecs(new RefSpec().setSource(null).setDestination(Constants.R_HEADS + branch)).call(); Expected: the branch is deleted from local and remote repository. Actual: exception is thrown: Caused by: org.eclipse.jgit.errors.TransportException: Missing unknown 0000000000000000000000000000000000000000 at org.eclipse.jgit.transport.Transport.push(Transport.java:1381) at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:137) ... 30 more Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown 0000000000000000000000000000000000000000 at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:135) at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:212) at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:1075) at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:985) at org.eclipse.jgit.lfs.LfsPrePushHook.findObjectsToPush(LfsPrePushHook.java:120) at org.eclipse.jgit.lfs.LfsPrePushHook.call(LfsPrePushHook.java:100) at org.eclipse.jgit.transport.Transport.push(Transport.java:1379)
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/189893
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/189893 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=ad098b3b85c58fffd65b7daee03363b1e71d456c
Thanks, Nail!