Determines repo and hosting service.