def testCloneRepository(self):
        self.repository.initialize()
        self.generateComplicatedCommit()

        path = tempfile.mkdtemp()
        clonedRepository = Repository(path)

        clonedRepository.clone(self.path)

        shutil.rmtree(path)
コード例 #2
0
ファイル: __init__.py プロジェクト: cvangysel/gitexd
  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