Force to update repository status even if error happends

This commit is contained in:
leo 2020-07-06 09:13:39 +08:00
parent 78fc438557
commit 0f5382e474

View file

@ -207,14 +207,13 @@ namespace SourceGit.Git {
/// </summary> /// </summary>
/// <param name="err"></param> /// <param name="err"></param>
public void AssertCommand(string err) { public void AssertCommand(string err) {
if (!string.IsNullOrEmpty(err)) { if (!string.IsNullOrEmpty(err)) App.RaiseError(err);
App.RaiseError(err);
} else { Branches(true);
Branches(true); OnBranchChanged?.Invoke();
OnBranchChanged?.Invoke(); OnCommitsChanged?.Invoke();
OnCommitsChanged?.Invoke(); OnWorkingCopyChanged?.Invoke();
OnWorkingCopyChanged?.Invoke(); OnTagChanged?.Invoke();
}
isWatcherDisabled = false; isWatcherDisabled = false;
} }