summaryrefslogtreecommitdiff
path: root/SparkleLib/Git/SparkleGit.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SparkleLib/Git/SparkleGit.cs')
-rw-r--r--SparkleLib/Git/SparkleGit.cs8
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;