From 1f9bfe300c375f6a84f9cbdf62ba9d992f73e674 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 15 Feb 2015 15:33:34 +0000 Subject: [PATCH] git: Don't hang on terminal prompts with Git >= 2.3 --- SparkleLib/Git/SparkleGit.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SparkleLib/Git/SparkleGit.cs b/SparkleLib/Git/SparkleGit.cs index a96cdd02..b54f0458 100644 --- a/SparkleLib/Git/SparkleGit.cs +++ b/SparkleLib/Git/SparkleGit.cs @@ -123,7 +123,12 @@ namespace SparkleLib.Git { StartInfo.EnvironmentVariables ["LANG"] = "en_US"; else StartInfo.EnvironmentVariables.Add ("LANG", "en_US"); - + + if (StartInfo.EnvironmentVariables.ContainsKey ("GIT_TERMINAL_PROMPT")) + StartInfo.EnvironmentVariables ["GIT_TERMINAL_PROMPT"] = "0"; + else + StartInfo.EnvironmentVariables.Add ("GIT_TERMINAL_PROMPT", "0"); + if (!string.IsNullOrEmpty (SSHPath)) { if (StartInfo.EnvironmentVariables.ContainsKey ("GIT_SSH")) StartInfo.EnvironmentVariables ["GIT_SSH"] = SSHPath;