aboutsummaryrefslogtreecommitdiff
path: root/src/repo/git/checkout.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-03-26 10:46:43 +0100
committerMax Audron <audron@cocaine.farm>2025-03-26 10:46:43 +0100
commitf8560b936c3ffa33a29ad97ff02e3286393a8035 (patch)
tree6d62e08697a0eccda3a125b5b717e313ff689595 /src/repo/git/checkout.rs
parenti do not know what i did anymore (diff)
update dependencies and rust version
Diffstat (limited to 'src/repo/git/checkout.rs')
-rw-r--r--src/repo/git/checkout.rs4
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 =