find revisions by full component rather than suffix

Consider a repository having branches named `production` and `foo_production`.  

The `git ls-remotes` command will have output something like this:
`abcd1234abcd1234        refs/heads/foo_production`
`fedc9876fedc9876        refs/heads/production`

If you've specified `revision` as `production`, you might get `foo_production` instead, because `remote_resolve_reference` just looks for end_with?('production') instead of end_with?('/production').