Skip to content

Commit

Permalink
Use longhand gitoxide path-spec patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jemtucker committed Aug 9, 2024
1 parent 73a1b76 commit 0ad3238
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 0ad3238

Please sign in to comment.