git: refresh index stat cache after CLI status

This commit is contained in:
2026-11-07 02:39:08 +00:00
parent 9d11ab381e
commit e1cfaa93bf
4 changed files with 47 additions and 4 deletions
+1 -1
View File
@@ -808,7 +808,7 @@ pub fn run(cli: Cli) -> Result<i32> {
porcelain,
branch,
} => {
let mut status = changes::status(&repository)?;
let mut status = changes::refresh_status(&repository)?;
let index = repository
.index_or_empty()
.map_err(|e| error("status index", e))?;