Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349667 - Can't add a new branch to a repo without branches.
Summary: Can't add a new branch to a repo without branches.
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 349666
  Show dependency tree
 
Reported: 2011-06-17 05:55 EDT by Szymon Brandys CLA
Modified: 2011-08-18 13:03 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?