From 0ad3238c204c183d23d86be638d0617e334fc752 Mon Sep 17 00:00:00 2001 From: Jem Tucker Date: Fri, 9 Aug 2024 17:04:13 +0100 Subject: [PATCH] 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 4159da35275..d4acb1d2095 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]