From 590b6a93b2a3add9342bce30a1e09858032e1d55 Mon Sep 17 00:00:00 2001 From: "Samir L. Boulema" Date: Wed, 15 Aug 2018 09:36:30 +0200 Subject: [PATCH] #36 --- TSVN/Helpers/CommandHelper.cs | 2 +- TSVN/TSVNToolWindowControl.xaml.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TSVN/Helpers/CommandHelper.cs b/TSVN/Helpers/CommandHelper.cs index 0cc8d41..2782f20 100644 --- a/TSVN/Helpers/CommandHelper.cs +++ b/TSVN/Helpers/CommandHelper.cs @@ -37,7 +37,7 @@ public static void Revert(string filePath) public static void ShowDifferences(string filePath) { if (string.IsNullOrEmpty(filePath)) return; - CommandHelper.StartProcess(FileHelper.GetTortoiseSvnProc(), $"/command:diff /path:\"{filePath}\""); + StartProcess(FileHelper.GetTortoiseSvnProc(), $"/command:diff /path:\"{filePath}\""); } public static List GetPendingChanges() diff --git a/TSVN/TSVNToolWindowControl.xaml.cs b/TSVN/TSVNToolWindowControl.xaml.cs index c450b10..8d30d9f 100644 --- a/TSVN/TSVNToolWindowControl.xaml.cs +++ b/TSVN/TSVNToolWindowControl.xaml.cs @@ -73,6 +73,8 @@ public void Update(List pendingChanges, string solutionDir) private void ProcessChange(TSVNTreeViewFolderItem root, string solutionDir, string change) { + if (change.Length <= 8) return; + var path = change.Substring(8); var pathParts = path.Split('\\');