mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 03:45:00 +00:00
refactor: query branch head after operation finished to avoid branch head mismatch
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
9fb8af51ff
commit
c112549b69
5 changed files with 25 additions and 17 deletions
|
@ -164,9 +164,10 @@ namespace SourceGit.ViewModels
|
|||
|
||||
log.Complete();
|
||||
|
||||
var head = new Commands.QueryRevisionByRefName(_repo.FullPath, "HEAD").Result();
|
||||
CallUIThread(() =>
|
||||
{
|
||||
_repo.NavigateToBranchDelayed(_repo.CurrentBranch?.FullName);
|
||||
_repo.NavigateToCommitDelayed(head);
|
||||
_repo.SetWatcherEnabled(true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue