fetcher: configure to ignore the global gitignore file. closes #1194
This commit is contained in:
parent
fe38965d0b
commit
1e2e253f5b
|
@ -188,8 +188,6 @@ namespace SparkleLib.Git {
|
||||||
InstallExcludeRules ();
|
InstallExcludeRules ();
|
||||||
InstallAttributeRules ();
|
InstallAttributeRules ();
|
||||||
|
|
||||||
AddWarnings ();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -309,6 +307,7 @@ namespace SparkleLib.Git {
|
||||||
"core.autocrlf false", // Don't change file line endings
|
"core.autocrlf false", // Don't change file line endings
|
||||||
"core.precomposeunicode true", // Use the same Unicode form on all filesystems
|
"core.precomposeunicode true", // Use the same Unicode form on all filesystems
|
||||||
"core.safecrlf false",
|
"core.safecrlf false",
|
||||||
|
"core.exludesfile \"\"",
|
||||||
"core.packedGitLimit 128m", // Some memory limiting options
|
"core.packedGitLimit 128m", // Some memory limiting options
|
||||||
"core.packedGitWindowSize 128m",
|
"core.packedGitWindowSize 128m",
|
||||||
"pack.deltaCacheSize 128m",
|
"pack.deltaCacheSize 128m",
|
||||||
|
@ -386,20 +385,5 @@ namespace SparkleLib.Git {
|
||||||
|
|
||||||
writer.Close ();
|
writer.Close ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void AddWarnings ()
|
|
||||||
{
|
|
||||||
if (this.warnings.Count > 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
SparkleGit git = new SparkleGit (TargetFolder, "config --global core.excludesfile");
|
|
||||||
string output = git.StartAndReadStandardOutput ();
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty (output))
|
|
||||||
return;
|
|
||||||
else
|
|
||||||
this.warnings.Add ("You seem to have a system wide ‘gitignore’ file, this may affect SparkleShare files.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue