git: only add new language env var if it doesn't exist yet. fixes #1191
This commit is contained in:
parent
4bcad658a6
commit
fe38965d0b
|
@ -117,7 +117,10 @@ namespace SparkleLib.Git {
|
|||
StartInfo.WorkingDirectory = path;
|
||||
StartInfo.CreateNoWindow = true;
|
||||
|
||||
StartInfo.EnvironmentVariables.Add ("LANG", "en_US");
|
||||
if (StartInfo.EnvironmentVariables.ContainsKey ("LANG"))
|
||||
StartInfo.EnvironmentVariables ["LANG"] = "en_US";
|
||||
else
|
||||
StartInfo.EnvironmentVariables.Add ("LANG", "en_US");
|
||||
|
||||
if (string.IsNullOrEmpty (ExecPath))
|
||||
StartInfo.Arguments = args;
|
||||
|
|
Loading…
Reference in a new issue