mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 23:27:17 +00:00
This fixes a small bug where the gitignore location can be misinterpreted to be in the folder "above" where it actually is.
This commit is contained in:
parent
8e8e53ae15
commit
a3d1afdd1f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ fn remove_ignored_files(book_root: &PathBuf, paths: &[PathBuf]) -> Vec<PathBuf>
|
|||
return vec![];
|
||||
}
|
||||
|
||||
let gitignore_path = book_root.with_file_name(".gitignore");
|
||||
let gitignore_path = book_root.join(".gitignore");
|
||||
|
||||
match gitignore::File::new(gitignore_path.as_path()) {
|
||||
Ok(exclusion_checker) => paths
|
||||
|
|
Loading…
Add table
Reference in a new issue