gitblit/gitblit — pull request #5 by plm (2012-01-27 04:55:22+00:00)
Title: Allow administrative modification of the default branch/tag referenced by HEAD

This allows control over the default branch after clone, which is equivalent to running:
git symbolic-ref HEAD refs/heads/mybranch

This is for use in environments where the "master" branch does not exist or should not be the default upon clone, but administrators do not want to access the GitBlit via shell and run Git commands against the bare repository.

I haven't written any unit tests for the changes to JGitUtils, but it "worked for me" in my ad hoc testing.