From 8071a1331d3cd857522c1be6c50164d31d6f5d90 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 12 Mar 2011 15:38:20 +0000 Subject: [PATCH] [fetcher] set core.ignorecase to false for each folder --- SparkleLib/SparkleFetcher.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/SparkleLib/SparkleFetcher.cs b/SparkleLib/SparkleFetcher.cs index 566d1455..3aabad9b 100644 --- a/SparkleLib/SparkleFetcher.cs +++ b/SparkleLib/SparkleFetcher.cs @@ -83,7 +83,7 @@ namespace SparkleLib { } else { - InstallUserInfo (); + InstallConfiguration (); InstallExcludeRules (); SparkleHelpers.DebugInfo ("Git", "[" + TargetFolder + "] Repository cloned"); @@ -103,7 +103,7 @@ namespace SparkleLib { // Install the user's name and email into // the newly cloned repository - private void InstallUserInfo () + private void InstallConfiguration () { 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"); TextWriter writer = File.AppendText (repo_config_file_path); - writer.WriteLine (user_info); - writer.Close (); - SparkleHelpers.DebugInfo ("Config", "Added user info to '" + repo_config_file_path + "'"); + // User info + writer.WriteLine (user_info); + + // Config option to enable case sensitivity + writer.WriteLine ("[core]"); + writer.WriteLine ("\tignorecase = false"); + + writer.Close (); + + SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'"); }