Skip to content

Commit b1db21e

Browse files
authored
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
1 parent 1083006 commit b1db21e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
* use [tombi](https://github.com/tombi-toml/tombi) for all toml file formatting
1212

1313
### Fixes
14+
* crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895))
1415
* 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))
1516

1617
## [0.28.1] - 2026-03-21

asyncgit/src/status.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ impl AsyncStatus {
138138
arc_generation.fetch_add(1, Ordering::Relaxed);
139139
arc_pending.fetch_sub(1, Ordering::Relaxed);
140140

141-
sender
142-
.send(AsyncGitNotification::Status)
143-
.expect("error sending status");
141+
if let Err(e) = sender.send(AsyncGitNotification::Status)
142+
{
143+
log::error!("send status error: {e}");
144+
}
144145
});
145146

146147
Ok(None)

0 commit comments

Comments
 (0)