fix panic when opening submodule (#2896)

this is caused by us dropping the git notify channel and creating a new one when opening the submodule.

closes #2895
This commit is contained in:
extrawurst 2026-03-31 12:38:05 +01:00 committed by GitHub
parent 1083006a55
commit b1db21e10a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* use [tombi](https://github.com/tombi-toml/tombi) for all toml file formatting
### Fixes
* crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895))
* when staging the last file in a directory, the first item after the directory is no longer skipped [[@Tillerino](https://github.com/Tillerino)] ([#2748](https://github.com/gitui-org/gitui/issues/2748))
## [0.28.1] - 2026-03-21

View file

@ -138,9 +138,10 @@ impl AsyncStatus {
arc_generation.fetch_add(1, Ordering::Relaxed);
arc_pending.fetch_sub(1, Ordering::Relaxed);
sender
.send(AsyncGitNotification::Status)
.expect("error sending status");
if let Err(e) = sender.send(AsyncGitNotification::Status)
{
log::error!("send status error: {e}");
}
});
Ok(None)