Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349667

Summary: Can't add a new branch to a repo without branches.
Product: [Technology] JGit Reporter: Szymon Brandys <Szymon.Brandys>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: christian.halstrick, pwebster, tomasz.zarna
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 349666    

Description Szymon Brandys CLA 2011-06-17 05:55:48 EDT
Try to clone git://github.com/bokowski/empty.git and try to add a branch using org.eclipse.jgit.api.CreateBranchCommand. I get org.eclipse.jgit.api.errors.RefNotFoundException: Ref HEAD can not be resolved.
Comment 1 Tomasz Zarna CLA 2011-08-18 13:03:19 EDT
I haven't checked it, but I assume the repo doesn't contain any commits (no HEAD), so the current behavior is actually expected.

Chris, could you confirm and close the bug if I'm right?