git: write error outputs to the debug.log for easier debugging
This commit is contained in:
parent
54bc9cbe6c
commit
1981705100
|
@ -117,8 +117,12 @@ namespace SparkleLib.Git {
|
||||||
else
|
else
|
||||||
// "Compressing objects" stage
|
// "Compressing objects" stage
|
||||||
number = (number / 100 * 20);
|
number = (number / 100 * 20);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
SparkleHelpers.DebugInfo ("Fetcher", line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (number >= percentage) {
|
if (number >= percentage) {
|
||||||
percentage = number;
|
percentage = number;
|
||||||
|
|
||||||
|
|
|
@ -238,8 +238,12 @@ namespace SparkleLib.Git {
|
||||||
speed = speed.Replace ("MB/s", "ᴍʙ/s");
|
speed = speed.Replace ("MB/s", "ᴍʙ/s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] " + line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (number >= percentage) {
|
if (number >= percentage) {
|
||||||
percentage = number;
|
percentage = number;
|
||||||
base.OnProgressChanged (percentage, speed);
|
base.OnProgressChanged (percentage, speed);
|
||||||
|
@ -295,7 +299,11 @@ namespace SparkleLib.Git {
|
||||||
speed = speed.Replace ("MB/s", "ᴍʙ/s");
|
speed = speed.Replace ("MB/s", "ᴍʙ/s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] " + line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (number >= percentage) {
|
if (number >= percentage) {
|
||||||
percentage = number;
|
percentage = number;
|
||||||
|
@ -714,8 +722,9 @@ namespace SparkleLib.Git {
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
foreach (string child_path in Directory.GetDirectories (path)) {
|
foreach (string child_path in Directory.GetDirectories (path)) {
|
||||||
if (child_path.EndsWith (".git") &&
|
if (child_path.EndsWith (".git")) {
|
||||||
!child_path.Equals (Path.Combine (LocalPath, ".git"))) {
|
if (child_path.Equals (Path.Combine (LocalPath, ".git")))
|
||||||
|
continue;
|
||||||
|
|
||||||
string HEAD_file_path = Path.Combine (child_path, "HEAD");
|
string HEAD_file_path = Path.Combine (child_path, "HEAD");
|
||||||
|
|
||||||
|
@ -725,9 +734,6 @@ namespace SparkleLib.Git {
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
} else if (child_path.EndsWith (".git")) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PrepareDirectories (child_path);
|
PrepareDirectories (child_path);
|
||||||
|
|
Loading…
Reference in a new issue