Skip to content

Commit

Permalink
fix: use longhand gitoxide path-spec patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jemtucker committed Aug 10, 2024
1 parent 31c01d3 commit 87ac7a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/sources/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 87ac7a1

Please sign in to comment.