git: Don't hang on terminal prompts with Git >= 2.3
This commit is contained in:
parent
6da51724a3
commit
1f9bfe300c
|
@ -124,6 +124,11 @@ namespace SparkleLib.Git {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue