| Summary: | Repository#getBranch() returns 'master' when the repo has no branches. | ||
|---|---|---|---|
| Product: | [Technology] JGit | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | JGit | Assignee: | Project Inbox <jgit.core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | pwebster, robin.rosenberg, tomasz.zarna |
| Version: | 1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 349663 | ||
|
Description
Szymon Brandys
This is correct. The current branch IS master, but it has no commits and is therefore sometimes called and "unborn" branch. If you commit now, the commit will be created on the master branch. If you want to see that the branch is unborn, just resolve it and you'll get a null. |