File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change @@ -5833,17 +5833,6 @@ fn directory_with_leading_underscore() {
58335833 . file ( "_foo/foo/build.rs" , "fn main() { }" )
58345834 } ) ;
58355835 p. cargo ( "build --manifest-path=_foo/foo/Cargo.toml -v" )
5836- . with_status ( 101 )
5837- . with_stderr_data ( r#"[ERROR] failed to determine package fingerprint for build script for foo v0.1.0 ([ROOT]/foo/_foo/foo)
5838-
5839- Caused by:
5840- failed to determine the most recently modified file in [ROOT]/foo/_foo/foo
5841-
5842- Caused by:
5843- failed to determine list of files in [ROOT]/foo/_foo/foo
5844-
5845- Caused by:
5846- Unimplemented short keyword: '_'
5847- "# )
5836+ . with_status ( 0 )
58485837 . run ( ) ;
58495838}
You can’t perform that action at this time.
0 commit comments