diff options
Diffstat (limited to 'src/repo/git/checkout.rs')
| -rw-r--r-- | src/repo/git/checkout.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repo/git/checkout.rs b/src/repo/git/checkout.rs index a36b152..d4a9ced 100644 --- a/src/repo/git/checkout.rs +++ b/src/repo/git/checkout.rs @@ -6,6 +6,7 @@ use gix::{ Progress, }; +use gix::validate::path::component::Options; use gix_index::{File, State}; use tracing::debug; @@ -27,7 +28,8 @@ impl Repo { .context("failed to peel HEAD object")? .id(); - let index = State::from_tree(&head_tree, &repo.objects).context("index from tree")?; + let index = State::from_tree(&head_tree, &repo.objects, Options::default()) + .context("index from tree")?; let mut index = File::from_state(index, repo.index_path()); let mut files = |
