def test_bare(self): self.clean() repo = Jagare.init(self.path, bare=True) pygit2_repo = Repository(self.path) assert is_repository(self.path) is True assert repo.empty is True assert repo.bare is True assert pygit2_repo.is_empty is True assert pygit2_repo.is_bare is True
def test_empty(self): self.clean() repo = Jagare.init(self.path, work_path=self.path) pygit2_repo = Repository(self.path) assert is_repository(self.path) is True assert repo.empty is True assert repo.bare is False assert pygit2_repo.is_empty is True assert pygit2_repo.is_bare is False
def test_empty(self): self.clean() repo = Jagare.init(self.path, work_path=self.path) # git_dir == work_tree ?? pygit2_repo = Repository(self.path) assert is_repository(self.path) is True assert repo.empty is True assert repo.bare is False assert pygit2_repo.is_empty is True assert pygit2_repo.is_bare is False
def test_simple(self): repo = Jagare(self.path) path = self.get_temp_path() clone_repo = repo.clone(path) pygit2_repo = Repository(path) assert is_repository(path) is True assert pygit2_repo.is_empty is False assert pygit2_repo.is_bare is False assert clone_repo.empty is False assert clone_repo.bare is False
def test_mirror(self): repo = Jagare(self.path) path = self.get_temp_path() clone_repo = repo.clone(path, mirror=True) pygit2_repo = Repository(path) assert is_repository(path) is True assert pygit2_repo.is_empty is False assert pygit2_repo.is_bare is True assert clone_repo.empty is False assert clone_repo.bare is True