gitlabhq/gitlabhq — pull request #1375 by tsigo (2012-09-05 05:17:44+00:00)
Title: Default branch auto-discovery

A Project's `default_branch` will now be null by default. Upon the first
repository push, `discover_default_branch` gets called. If only one
branch exists, we use that. If two branches exist, we prefer the one
called master.

Closes #803