From a3d1afdd1f474812209c727744c9d44709a1cc9f Mon Sep 17 00:00:00 2001 From: Kim Hermansson Date: Fri, 4 Oct 2019 19:44:36 +0200 Subject: [PATCH] This fixes a small bug where the gitignore location can be misinterpreted to be in the folder "above" where it actually is. --- src/cmd/watch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/watch.rs b/src/cmd/watch.rs index fe1f188c..09524f65 100644 --- a/src/cmd/watch.rs +++ b/src/cmd/watch.rs @@ -53,7 +53,7 @@ fn remove_ignored_files(book_root: &PathBuf, paths: &[PathBuf]) -> Vec 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