From 0f5382e474cc05f98c5313bd8e23402dad1f78d5 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 6 Jul 2020 09:13:39 +0800 Subject: [PATCH] Force to update repository status even if error happends --- Git/Repository.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Git/Repository.cs b/Git/Repository.cs index 3d364b5b..983628a6 100644 --- a/Git/Repository.cs +++ b/Git/Repository.cs @@ -207,14 +207,13 @@ namespace SourceGit.Git { /// /// public void AssertCommand(string err) { - if (!string.IsNullOrEmpty(err)) { - App.RaiseError(err); - } else { - Branches(true); - OnBranchChanged?.Invoke(); - OnCommitsChanged?.Invoke(); - OnWorkingCopyChanged?.Invoke(); - } + if (!string.IsNullOrEmpty(err)) App.RaiseError(err); + + Branches(true); + OnBranchChanged?.Invoke(); + OnCommitsChanged?.Invoke(); + OnWorkingCopyChanged?.Invoke(); + OnTagChanged?.Invoke(); isWatcherDisabled = false; }