mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 13:26:16 +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();
|
fs::write(repository.path().join("..").join(file_name), contents).unwrap();
|
||||||
}
|
}
|
||||||
let mut index = repository.index().unwrap();
|
let mut index = repository.index().unwrap();
|
||||||
|
// Make sure we're not having weird cached state
|
||||||
|
index.read(true).unwrap();
|
||||||
index
|
index
|
||||||
.add_all(["*"], git2::IndexAddOption::DEFAULT, None)
|
.add_all(["*"], git2::IndexAddOption::DEFAULT, None)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user