From 7a32df93ec15a5a7d5eae5b9eecc98b0344e842c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 31 Oct 2014 11:10:49 +0000 Subject: [PATCH] repo git: Fix first character of file names being cut off sometimes in logs --- SparkleLib/Git/SparkleRepoGit.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 7bcfd26e..f5f96d48 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -1112,8 +1112,8 @@ namespace SparkleLib.Git { SparkleChange change; 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 ()); + string path = line.Substring (3, line.IndexOf (" -> ") - 3).Trim ("\" ".ToCharArray ()); + string moved_to_path = line.Substring (line.IndexOf (" -> ") + 4).Trim ("\" ".ToCharArray ()); change = new SparkleChange () { Type = SparkleChangeType.Moved, @@ -1122,7 +1122,7 @@ namespace SparkleLib.Git { }; } else { - string path = line.Substring (3).Trim ("\"".ToCharArray ()); + string path = line.Substring (2).Trim ("\" ".ToCharArray ()); change = new SparkleChange () { Path = EnsureSpecialCharacters (path) }; change.Type = SparkleChangeType.Added;