public static bool AskForCacheHostkey(IWin32Window owner, GitModule module, string remoteUrl) { if (!string.IsNullOrEmpty(remoteUrl) && MessageBoxes.CacheHostkey(owner)) { return(new Plink().Connect(remoteUrl)); } return(false); }
public static bool AskForCacheHostkey(IWin32Window owner, GitModule module, string remoteUrl) { if (!remoteUrl.IsNullOrEmpty() && MessageBoxes.CacheHostkey(owner)) { module.RunExternalCmdShowConsole( "cmd.exe", string.Format("/k \"\"{0}\" -T \"{1}\"\"", AppSettings.Plink, remoteUrl)); return(true); } return(false); }