github/hub — pull request #508 by jingweno (2014-03-03 23:52:22+00:00)
Title: Refactor code that orders remotes by priority

See corresponding algorithm in hub: https://github.com/github/hub/blob/master/lib/hub/context.rb#L211-L215