git.rs: fixes commits being scanned incorrectly; exposes new problem
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user