mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
Force to update repository status even if error happends
This commit is contained in:
parent
78fc438557
commit
0f5382e474
1 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue