public ICommandResponse SetupGitRepos(InitialGitStatus status) { var argument = string.Empty; switch (status) { case InitialGitStatus.BareAheadOfHome: argument = " bare"; break; case InitialGitStatus.HomeAheadOfBare: argument = " home"; break; default: break; } var script = TestConstants.ScriptDirName + TestConstants.CreateRepoScript + argument; ICommandRequest request = new CommandRequest(); request.WorkingDirectory = TestConstants.ScriptDirPath; request.Name = "bash"; request.Arguments = script; var service = new CommandService(new BashGitCommandOutputStrategy()); var result = service.Execute(request); return(result); }
public ICommandResponse SetupGitRepos (InitialGitStatus status) { var argument = string.Empty; switch (status) { case InitialGitStatus.BareAheadOfHome: argument = " bare"; break; case InitialGitStatus.HomeAheadOfBare: argument = " home"; break; default: break; } var script = TestConstants.ScriptDirName + TestConstants.CreateRepoScript + argument; ICommandRequest request = new CommandRequest (); request.WorkingDirectory = TestConstants.ScriptDirPath; request.Name = "bash"; request.Arguments = script; var service = new CommandService (new BashGitCommandOutputStrategy ()); var result = service.Execute (request); return result; }