Merge branch 'fetcher-fix'

Conflicts:
	SparkleLib/SparkleFetcher.cs
This commit is contained in:
Hylke Bons 2011-03-12 17:58:53 +00:00
commit be79dfdb06

View file

@ -107,7 +107,7 @@ namespace SparkleLib {
}
// Install the user's name and email into
// Install the user's name and email and some config into
// the newly cloned repository
private void InstallConfiguration ()
{
@ -122,15 +122,12 @@ namespace SparkleLib {
string repo_config_file_path = SparkleHelpers.CombineMore (TargetFolder, ".git", "config");
TextWriter writer = File.AppendText (repo_config_file_path);
// User info
writer.WriteLine (user_info);
// Config option to enable case sensitivity
writer.WriteLine ("[core]");
writer.WriteLine ("\tignorecase = false");
string config = String.Join ("\n", File.ReadAllLines (repo_config_file_path));
config = config.Replace ("ignorecase = true", "ignorecase = false");
config += Environment.NewLine + user_info;
TextWriter writer = new StreamWriter (repo_config_file_path);
writer.WriteLine (config);
writer.Close ();
SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'");