magit/magit — pull request #438 by dudebout (2012-06-28 15:13:20+00:00)
Title: Fixes issue #429.

The way the remote part of a name is constructed is smarter.
Instead of taking the last remote if nothing matched, return nil.