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
|
@ -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…
Reference in New Issue