libgit2/libgit2 — pull request #2698 by carlosmn (2014-11-08 19:46:15+00:00)
Title: Refactor fetchhead

Check for the remote name (see #2697) and use a convenience function to figure out the name of the upstream remote, instead of figuring it out in the middle of an if condition.