mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 04:47:42 +03:00
Read index
This commit is contained in:
parent
1389b9e465
commit
932070ca1f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user