コード例 #1
0
        private void EnsureRepoIsPresent(IGitRepository repo)
        {
            var fileOps  = (IFileOperationsExecuter)this.Agent;
            var repoPath = repo.GetFullRepositoryPath(fileOps);

            if (!fileOps.DirectoryExists(repoPath) || !fileOps.DirectoryExists(fileOps.CombinePath(repoPath, ".git")))
            {
                fileOps.CreateDirectory(repoPath);
                this.GitClient.CloneRepo(repo);
            }
        }
コード例 #2
0
ファイル: GitClientBase.cs プロジェクト: zanyants/bmx-git
 protected ProcessResults ExecuteGitCommand(IGitRepository repo, string command, params string[] args)
 {
     return(this.Provider.ExecuteCommandLine(this.GitExePath, command + " " + string.Join(" ", args), repo.GetFullRepositoryPath(this.Provider.Agent)));
 }
コード例 #3
0
ファイル: GitClientBase.cs プロジェクト: jkuemerle/bmx-git
 protected ProcessResults ExecuteGitCommand(IGitRepository repo, string command, params string[] args)
 {
     return this.Provider.ExecuteCommandLine(this.GitExePath, command + " " + string.Join(" ", args), repo.GetFullRepositoryPath(this.Provider.Agent));
 }
コード例 #4
0
 private void EnsureRepoIsPresent(IGitRepository repo)
 {
     var fileOps = (IFileOperationsExecuter)this.Agent;
     var repoPath = repo.GetFullRepositoryPath(fileOps);
     if (!fileOps.DirectoryExists2(repoPath) || !fileOps.DirectoryExists2(fileOps.CombinePath(repoPath, ".git")))
     {
         fileOps.CreateDirectory(repoPath);
         this.GitClient.CloneRepo(repo);
     }
 }