fix log not updating after branch switch

closes #1862
This commit is contained in:
extrawurst 2023-08-31 10:02:59 +02:00
parent 082e308efb
commit 16c97edb4d
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Fixes
* fix commit log not updating after branch switch ([#1862](https://github.com/extrawurst/gitui/issues/1862))
## [0.24.1] - 2023-08-30
### Fixes

View File

@ -95,6 +95,7 @@ impl CommitList {
///
pub fn clear(&mut self) {
self.items.clear();
self.commits.clear();
}
///
@ -740,8 +741,6 @@ impl CommitList {
let slice_end =
want_min.saturating_add(SLICE_SIZE).min(commits);
log::info!("fetch_commits: {want_min}-{slice_end}",);
let commits = sync::get_commits_info(
&self.repo.borrow(),
&self.commits[want_min..slice_end],