git.rs: fixes commits being scanned incorrectly; exposes new problem

This commit is contained in:
2026-04-23 23:50:25 -06:00
parent ac86e4a13b
commit bfe0f07f4b

View File

@@ -59,11 +59,13 @@ fn get_entries(tree: Tree) -> Result<Vec<Entry>, Box<dyn Error>> {
let path_slice: &[u8] = entry_t.path.as_ref(); let path_slice: &[u8] = entry_t.path.as_ref();
if commit.tree()?.lookup_entry([path_slice])?.is_some() { if commit.tree()?.lookup_entry([path_slice])?.is_some() {
entry_t.last_commit = commit.short_id()?.to_string(); entry_t.last_commit = commit.id.to_string();
entry_t.last_commit_message = commit.message_raw()?.to_string(); entry_t.last_commit_message = commit.message_raw()?.to_string();
entry_t.last_commit_time = format_iso8601_utc( entry_t.last_commit_time = format_iso8601_utc(
commit.time()?.seconds commit.time()?.seconds
)?; )?;
break
} }
} }