Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-10-16 22:33:54 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-10-16 22:33:54 +0300
commit19e259c853502081f73c531b7241e6db6d6e0d9e (patch)
treecaa705a855acc152e7bea708446afdc38ad510be /main/src/addins/VersionControl
parent3bf75dd53cbcdf0cc45926866d70ea92dd412b67 (diff)
Revert "[Mac] Re-enable SSH on el capitan and spawn own ssh-agent for usage."
This reverts commit a6074d56a487389e4aabaedd6ffc668a89c9f4db.
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitCredentials.cs27
1 files changed, 2 insertions, 25 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitCredentials.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitCredentials.cs
index f8863a52f3..9c9dfde998 100644
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitCredentials.cs
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitCredentials.cs
@@ -76,35 +76,12 @@ namespace MonoDevelop.VersionControl.Git
if (File.Exists (publicKey) && !KeyHasPassphrase (privateKey))
Keys.Add (privateKey);
}
-
- if (PlatformSupportsSshAgent) {
- var psi = new System.Diagnostics.ProcessStartInfo ("ssh-agent") {
- RedirectStandardOutput = true,
- UseShellExecute = false,
- };
-
- // Sample output:
- // SSH_AUTH_SOCK=/var/folders/0j/41xlj0jx3cgbtmhgltrfkh380000gn/T//ssh-i6vkPrEeFBuB/agent.40235; export SSH_AUTH_SOCK;
- // SSH_AGENT_PID=40236; export SSH_AGENT_PID;
- // echo Agent pid 40236;
-
- var proc = System.Diagnostics.Process.Start (psi);
- proc.WaitForExit ();
-
- var envSetter = proc.StandardOutput.ReadLine ().Split (';')[0];
- var offset = envSetter.IndexOf ('=') + 1;
- var envValue = envSetter.Substring (offset, envSetter.Length - offset);
- Environment.SetEnvironmentVariable ("SSH_AUTH_SOCK", envValue);
- }
- }
-
- static bool PlatformSupportsSshAgent {
- get { return !Platform.IsWindows; }
}
static bool SshAgentSupported (GitCredentialsState state)
{
- return !state.AgentUsed && PlatformSupportsSshAgent;
+ return !state.AgentUsed &&
+ (Platform.IsLinux || (Platform.IsMac && MacSystemInformation.OsVersion >= MacSystemInformation.ElCapitan));
}
public static Credentials TryGet (string url, string userFromUrl, SupportedCredentialTypes types, GitCredentialsType type)