libgit2/libgit2 — pull request #2238 by carlosmn (2014-04-02 16:50:53+00:00)
Title: Handle an upstream branch for an unborn one

Git branches are very precocious and they can have an upstream before they're born.

This fixes part of #2236 that actually breaks something.

/cc @jamill