Merge branch 'fetcher-fix'
Conflicts: SparkleLib/SparkleFetcher.cs
This commit is contained in:
commit
e8ae8198ff
|
@ -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
|
// the newly cloned repository
|
||||||
private void InstallConfiguration ()
|
private void InstallConfiguration ()
|
||||||
{
|
{
|
||||||
|
@ -122,15 +122,12 @@ namespace SparkleLib {
|
||||||
|
|
||||||
string repo_config_file_path = SparkleHelpers.CombineMore (TargetFolder, ".git", "config");
|
string repo_config_file_path = SparkleHelpers.CombineMore (TargetFolder, ".git", "config");
|
||||||
|
|
||||||
TextWriter writer = File.AppendText (repo_config_file_path);
|
string config = String.Join ("\n", File.ReadAllLines (repo_config_file_path));
|
||||||
|
config = config.Replace ("ignorecase = true", "ignorecase = false");
|
||||||
// User info
|
config += Environment.NewLine + user_info;
|
||||||
writer.WriteLine (user_info);
|
|
||||||
|
|
||||||
// Config option to enable case sensitivity
|
|
||||||
writer.WriteLine ("[core]");
|
|
||||||
writer.WriteLine ("\tignorecase = false");
|
|
||||||
|
|
||||||
|
TextWriter writer = new StreamWriter (repo_config_file_path);
|
||||||
|
writer.WriteLine (config);
|
||||||
writer.Close ();
|
writer.Close ();
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'");
|
SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'");
|
||||||
|
|
Loading…
Reference in a new issue