mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
Force to update repository status even if error happends
This commit is contained in:
@@ -207,14 +207,13 @@ namespace SourceGit.Git {
|
||||
/// </summary>
|
||||
/// <param name="err"></param>
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user