klaussilveira/gitlist — pull request #221 by NateEag (2012-12-13 21:09:18+00:00)
Title: Use checked-out branch as default branch.

Previously assumed 'master' was the default branch, when master may not
exist at all.

(Note that the test case has not been successfully tested, due to a weird config issue on the machine I did this on. Someone should verify that it works before merging it.)