Skip to content

Commit 2314b64

Browse files
committed
fix .gitignore #176
1 parent f7d22cd commit 2314b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/searcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<'a> Searcher<'a> {
639639
#[cfg(feature = "git")]
640640
let pass_gitignore = !apply_gitignore
641641
|| !(git_repository.is_some() &&
642-
git_repository.unwrap().is_path_ignored(&path)
642+
git_repository.unwrap().is_path_ignored(&canonical_path)
643643
.unwrap_or(false));
644644
#[cfg(not(feature = "git"))]
645645
let pass_gitignore = true;

0 commit comments

Comments
 (0)