factor out _get_repo_class
write anyvcs.clone()
write GitRepo.clone()
write clone unit test