Ejemplo n.º 1
0
        public static bool AskForCacheHostkey(IWin32Window owner, GitModule module, string remoteUrl)
        {
            if (!string.IsNullOrEmpty(remoteUrl) && MessageBoxes.CacheHostkey(owner))
            {
                return(new Plink().Connect(remoteUrl));
            }

            return(false);
        }
Ejemplo n.º 2
0
        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);
        }