private GitBashResult GitRun(string cmd)
{
if (!GitBash.Exists) throw new GitException("git.exe is not found.");
if (this.Tracker == null) throw new GitException("Git repository is not found.");
var ret = new GitBashResult { HasError = true };
try
{
ret = GitBash.Run(cmd, this.Tracker.WorkingDirectory);
HistoryViewCommands.ShowMessage.Execute(new { GitBashResult = ret }, null);
}
catch (Exception ex)
{
ret.Error = ex.Message;
HistoryViewCommands.ShowMessage.Execute(new { GitBashResult = ret }, null);
}
return ret;
}