Use getByRemoteName in fetch command

Leverage getByRemoteName() method in fetch command when looking for a
specific remote, rather than inefficiently scanning the entire list of
sources.

This improves access time from an O(n) scan to an O(1) lookup.

Change-Id: I282e1da1bb94adfb20a4f566130cdf1a4b424c57
2 files changed
tree: c1518c9f4b33b1d621cb6252025b65bbd20305a1
  1. src/
  2. BUILD
  3. Jenkinsfile
  4. LICENSE