예제 #1
0
 public static string CreateDummyRepo(string basePath, string repoName)
 {
     var path = Path.Combine(Locations.GitSupportScriptsLocation, "git_create_dummy_repo.rb");
     var process = new OSExecuatableTask("ruby", path + " \"" + basePath + "\" " + repoName, "Git create dummy repo",(s, s1, arg3) => new ProcessWrapper(s,s1,arg3 ));
     process.Perform(new SourceDrop(Directory.GetCurrentDirectory()));
     return Path.Combine(basePath, repoName);
 }
예제 #2
0
 public static void CommitChangeFiles(string repo, string fileset, string commitMessage = "wind of change")
 {
     var scriptPath = Path.Combine(Locations.GitSupportScriptsLocation, "git_commit_files.rb");
     var process = new OSExecuatableTask("ruby", scriptPath + " \"" + repo + "\" \"" + fileset + "/.\" \"" + commitMessage+"\"", "Commit all changes to git", (s, s1, arg3) => new ProcessWrapper(s, s1, arg3));
     process.Perform(new SourceDrop(Directory.GetCurrentDirectory()));
 }