diff options
author | Jo Shields <directhex@apebox.org> | 2015-12-21 22:01:14 +0000 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2015-12-21 22:01:14 +0000 |
commit | 89d5f75065cf2a7e2ca1c122c26a34d7433d120d (patch) | |
tree | 077dcd6b4a6b0aca6c8368c5da9a3ebe40137f48 /SparkleLib/Git/SparkleGit.cs | |
parent | e45ec00415203c0133be6d18a72326f3506f793b (diff) |
Imported Upstream version 1.2
Diffstat (limited to 'SparkleLib/Git/SparkleGit.cs')
-rw-r--r-- | SparkleLib/Git/SparkleGit.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SparkleLib/Git/SparkleGit.cs b/SparkleLib/Git/SparkleGit.cs index 3ccde01..8dd6489 100644 --- a/SparkleLib/Git/SparkleGit.cs +++ b/SparkleLib/Git/SparkleGit.cs @@ -103,6 +103,7 @@ namespace SparkleLib.Git { public static string ExecPath; public static string GitPath; + public static string SSHPath; public SparkleGit (string path, string args) : base (path, args) @@ -121,6 +122,13 @@ namespace SparkleLib.Git { StartInfo.EnvironmentVariables ["LANG"] = "en_US"; else StartInfo.EnvironmentVariables.Add ("LANG", "en_US"); + + if (!string.IsNullOrEmpty (SSHPath)) { + if (StartInfo.EnvironmentVariables.ContainsKey ("GIT_SSH")) + StartInfo.EnvironmentVariables ["GIT_SSH"] = SSHPath; + else + StartInfo.EnvironmentVariables.Add ("GIT_SSH", SSHPath); + } if (string.IsNullOrEmpty (ExecPath)) StartInfo.Arguments = args; |