public static GitWorkspace GetGitWorkspace(string pWorkspacePath) { if (!Directory.Exists(pWorkspacePath)) { throw new GitException("Path: " + pWorkspacePath + " does not exists!"); } var gw = new GitWorkspace() { WorkspacePath = pWorkspacePath }; return(gw); }
public string DirectRunWithResult(GitWorkspace pGitWorkspace, string pCommandLineParameters) { return(Runner.RunSyncUtilGetOutput(GitPath, pCommandLineParameters, pGitWorkspace.WorkspacePath)); }