def testCloneRepository(self): self.repository.initialize() self.generateComplicatedCommit() path = tempfile.mkdtemp() clonedRepository = Repository(path) clonedRepository.clone(self.path) shutil.rmtree(path)
def createTemporaryRepository(self, name=None, clone=None, bare=False, path=None): if path is None: path = self.repoPath path = self._generateRepositoryDirectory(name, dir=path) repository = Repository(path) if clone is not None: repository.clone(clone, bare) return repository