Community
Participate
Working Groups
Repository#getBranch() returns 'master' when the repo has no branches. I would expect to see 'null' or an exception. Steps: Try to clone git://github.com/bokowski/empty.git and check what the active branch is using #getBranch for it.
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.