fetcher git: add back warning about global gitignore
This commit is contained in:
parent
3a13cad422
commit
b73f422a99
|
@ -419,22 +419,16 @@ namespace SparkleLib.Git {
|
|||
|
||||
private void AddWarnings ()
|
||||
{
|
||||
/*
|
||||
SparkleGit git = new SparkleGit (TargetFolder,
|
||||
"config --global core.excludesfile");
|
||||
if (this.warnings.Count > 0)
|
||||
return;
|
||||
|
||||
git.Start ();
|
||||
|
||||
// Reading the standard output HAS to go before
|
||||
// WaitForExit, or it will hang forever on output > 4096 bytes
|
||||
string output = git.StandardOutput.ReadToEnd ().Trim ();
|
||||
git.WaitForExit ();
|
||||
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