[fetcher] set core.ignorecase to false for each folder
This commit is contained in:
parent
0178329e58
commit
8071a1331d
|
@ -83,7 +83,7 @@ namespace SparkleLib {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
InstallUserInfo ();
|
InstallConfiguration ();
|
||||||
InstallExcludeRules ();
|
InstallExcludeRules ();
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + TargetFolder + "] Repository cloned");
|
SparkleHelpers.DebugInfo ("Git", "[" + TargetFolder + "] Repository cloned");
|
||||||
|
@ -103,7 +103,7 @@ namespace SparkleLib {
|
||||||
|
|
||||||
// Install the user's name and email into
|
// Install the user's name and email into
|
||||||
// the newly cloned repository
|
// the newly cloned repository
|
||||||
private void InstallUserInfo ()
|
private void InstallConfiguration ()
|
||||||
{
|
{
|
||||||
|
|
||||||
string global_config_file_path = SparkleHelpers.CombineMore (SparklePaths.SparkleConfigPath, "config");
|
string global_config_file_path = SparkleHelpers.CombineMore (SparklePaths.SparkleConfigPath, "config");
|
||||||
|
@ -117,10 +117,17 @@ 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);
|
TextWriter writer = File.AppendText (repo_config_file_path);
|
||||||
|
|
||||||
|
// User info
|
||||||
writer.WriteLine (user_info);
|
writer.WriteLine (user_info);
|
||||||
|
|
||||||
|
// Config option to enable case sensitivity
|
||||||
|
writer.WriteLine ("[core]");
|
||||||
|
writer.WriteLine ("\tignorecase = false");
|
||||||
|
|
||||||
writer.Close ();
|
writer.Close ();
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Config", "Added user info to '" + repo_config_file_path + "'");
|
SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue