Ignore remote branches not on the same remote

When several GitSCMSource (or derivatives) are set up with different remote names, they may use the same cache (if they share the same url but different refspecs for instance).
When checking branches, it should consider only branches from its own remote.