mizzy/grit — comment on commit cee7f5f282f433f0eeaa3c305d7a6cefdaeeb3eb
File: lib/grit/repo.rb line 320
By joeljunstrom:

why not just use

remotes.detect { |r| r.name == name }

?