Bug 578313 - Cannot delete a branch if Built-in LFS is used
Summary: Cannot delete a branch if Built-in LFS is used
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 6.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 11:05 EST by Nail Samatov CLA
Modified: 2022-01-27 15:23 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nail Samatov CLA 2022-01-21 11:05:21 EST
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)
Comment 1 Eclipse Genie CLA 2022-01-21 11:39:49 EST
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/189893
Comment 3 Thomas Wolf CLA 2022-01-27 15:23:04 EST
Thanks, Nail!