libgit2/libgit2 — pull request #2511 by carlosmn (2014-08-10 15:15:29+00:00)
Title: [WIP] Restrict which refs can be the default branch

We currently consider anything to be capable of being the default branch, including notes. We should only let the default branch be a branch, i.e. a ref living in `refs/heads/`.