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:
Kim Hermansson 2019-10-04 19:44:36 +02:00
parent 8e8e53ae15
commit a3d1afdd1f
1 changed files with 1 additions and 1 deletions

View File

@ -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