'Given a repository clone URL, return the tool shed that contains the repository.'

def tool_shed_from_repository_clone_url(self):

    cleaned_repository_clone_url = common_util.remove_protocol_and_user_from_clone_url(self.repository_clone_url)
    return common_util.remove_protocol_and_user_from_clone_url(cleaned_repository_clone_url).split('/repos/')[0].rstrip('/')
