[Version Control] Ensure we don't ever get false positives on repositories.

The VersionControlService action should not return wrong repository types.