From 87ac7a175b290fe23ecd4cc73a12c5f775645c0a Mon Sep 17 00:00:00 2001 From: Jem Tucker Date: Sat, 10 Aug 2024 19:37:51 +0100 Subject: [PATCH] fix: use longhand gitoxide path-spec patterns --- src/cargo/sources/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs index 4159da352754..d4acb1d2095a 100644 --- a/src/cargo/sources/path.rs +++ b/src/cargo/sources/path.rs @@ -610,11 +610,11 @@ fn list_files_gix( let pathspec = { // Include the package root. - let mut include = BString::from(":/"); + let mut include = BString::from(":(top)"); include.push_str(package_prefix.as_ref()); // Exclude the target directory. - let mut exclude = BString::from(":!/"); + let mut exclude = BString::from(":!(exclude,top)"); exclude.push_str(target_prefix.as_ref()); vec![include, exclude]