Skip to content

Commit 87ac7a1

Browse files
committed
fix: use longhand gitoxide path-spec patterns
1 parent 31c01d3 commit 87ac7a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/sources/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,11 @@ fn list_files_gix(
610610

611611
let pathspec = {
612612
// Include the package root.
613-
let mut include = BString::from(":/");
613+
let mut include = BString::from(":(top)");
614614
include.push_str(package_prefix.as_ref());
615615

616616
// Exclude the target directory.
617-
let mut exclude = BString::from(":!/");
617+
let mut exclude = BString::from(":!(exclude,top)");
618618
exclude.push_str(target_prefix.as_ref());
619619

620620
vec![include, exclude]

0 commit comments

Comments
 (0)