Esempio n. 1
0
 def test_repo_clone(self):
     self.__check_for_existing_repo()
     repo = GitRepository(TEST_GIT_REPO)
     repo_clone = GitRepository(
         TEST_GIT_REPO_CLONE,
         src_url=TEST_GIT_REPO, create=True, update_after_clone=True)
     assert len(repo.commit_ids) == len(repo_clone.commit_ids)
     # Checking hashes of commits should be enough
     for commit in repo.get_commits():
         raw_id = commit.raw_id
         assert raw_id == repo_clone.get_commit(raw_id).raw_id