repo git: fix formatting of commit message

This commit is contained in:
Hylke Bons 2013-02-18 19:59:09 +00:00
parent 0116fef1be
commit bf1e87fde0

View file

@ -1016,7 +1016,7 @@ namespace SparkleLib.Git {
if (line.EndsWith (".empty") || line.EndsWith (".empty\""))
line = line.Replace (".empty", "");
if (line.StartsWith ("R")) {
if (line.StartsWith (" R")) {
string path = line.Substring (3, line.IndexOf (" -> ") - 3).Trim ("\"".ToCharArray ());
string moved_to_path = line.Substring (line.IndexOf (" -> ") + 4).Trim ("\"".ToCharArray ());
@ -1024,10 +1024,10 @@ namespace SparkleLib.Git {
message += "> " + EnsureSpecialCharacters (moved_to_path) + "\n";
} else {
if (line.StartsWith ("M")) {
if (line.StartsWith (" M")) {
message += "/";
} else if (line.StartsWith ("D")) {
} else if (line.StartsWith (" D")) {
message += "-";
} else {