Read index

This commit is contained in:
Caleb Owens 2024-09-12 13:03:04 +02:00
parent 1389b9e465
commit 932070ca1f
No known key found for this signature in database

View File

@ -495,6 +495,8 @@ mod test {
fs::write(repository.path().join("..").join(file_name), contents).unwrap();
}
let mut index = repository.index().unwrap();
// Make sure we're not having weird cached state
index.read(true).unwrap();
index
.add_all(["*"], git2::IndexAddOption::DEFAULT, None)
.unwrap();