mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
Band-aid fix for submodule/reset.go test failure
This is not a complete fix, but it's good enough to fix the spurious test failures of submodule/reset.go. We have some vague hope to fix this in a more sustainable way by somehow improving our concurrency model fundamentally, but that's a more long-term undertaking, and it's annoying that this test fails so often, so let's fix it in this way for now.
This commit is contained in:
parent
3cda1d03d9
commit
6fd80565c7
@ -449,9 +449,11 @@ func (self *RefreshHelper) refreshBranches() {
|
|||||||
|
|
||||||
// Need to re-render the commits view because the visualization of local
|
// Need to re-render the commits view because the visualization of local
|
||||||
// branch heads might have changed
|
// branch heads might have changed
|
||||||
|
self.c.Mutexes().LocalCommitsMutex.Lock()
|
||||||
if err := self.c.Contexts().LocalCommits.HandleRender(); err != nil {
|
if err := self.c.Contexts().LocalCommits.HandleRender(); err != nil {
|
||||||
self.c.Log.Error(err)
|
self.c.Log.Error(err)
|
||||||
}
|
}
|
||||||
|
self.c.Mutexes().LocalCommitsMutex.Unlock()
|
||||||
|
|
||||||
self.refreshStatus()
|
self.refreshStatus()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user