git: Don't hang on terminal prompts with Git >= 2.3
This commit is contained in:
parent
6da51724a3
commit
1f9bfe300c
|
@ -123,7 +123,12 @@ namespace SparkleLib.Git {
|
||||||
StartInfo.EnvironmentVariables ["LANG"] = "en_US";
|
StartInfo.EnvironmentVariables ["LANG"] = "en_US";
|
||||||
else
|
else
|
||||||
StartInfo.EnvironmentVariables.Add ("LANG", "en_US");
|
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 (!string.IsNullOrEmpty (SSHPath)) {
|
||||||
if (StartInfo.EnvironmentVariables.ContainsKey ("GIT_SSH"))
|
if (StartInfo.EnvironmentVariables.ContainsKey ("GIT_SSH"))
|
||||||
StartInfo.EnvironmentVariables ["GIT_SSH"] = SSHPath;
|
StartInfo.EnvironmentVariables ["GIT_SSH"] = SSHPath;
|
||||||
|
|
Loading…
Reference in a new issue