git: force language to be en_US for output

This commit is contained in:
Hylke Bons 2013-02-18 21:19:31 +00:00
parent bf1e87fde0
commit 85cea028ef
3 changed files with 3 additions and 4 deletions

View file

@ -117,6 +117,8 @@ namespace SparkleLib.Git {
StartInfo.WorkingDirectory = path; StartInfo.WorkingDirectory = path;
StartInfo.CreateNoWindow = true; StartInfo.CreateNoWindow = true;
StartInfo.EnvironmentVariables.Add ("LANG", "en_US");
if (string.IsNullOrEmpty (ExecPath)) if (string.IsNullOrEmpty (ExecPath))
StartInfo.Arguments = args; StartInfo.Arguments = args;
else else

View file

@ -70,8 +70,6 @@ namespace SparkleLib.Git {
public SparkleRepo (string path, SparkleConfig config) : base (path, config) public SparkleRepo (string path, SparkleConfig config) : base (path, config)
{ {
// TODO: Set git locale to en-US
SparkleGit git = new SparkleGit (LocalPath, "config core.ignorecase false"); SparkleGit git = new SparkleGit (LocalPath, "config core.ignorecase false");
git.StartAndWaitForExit (); git.StartAndWaitForExit ();

View file

@ -270,7 +270,6 @@ namespace SparkleShare {
new Thread (() => { new Thread (() => {
CheckRepositories (); CheckRepositories ();
RepositoriesLoaded = true; RepositoriesLoaded = true;
FolderListChanged ();
UpdateState (); UpdateState ();
}).Start (); }).Start ();
@ -371,7 +370,7 @@ namespace SparkleShare {
else else
previous_name = folder_name; previous_name = folder_name;
} }
FolderListChanged (); FolderListChanged ();
} }
} }