From 6af8f092ee20f23b4d3cd891be8b77068284d9a8 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 13 Mar 2024 23:46:30 -0600 Subject: [PATCH] Workaround for bug with gitinored files This is a workaround for https://github.com/BurntSushi/ripgrep/issues/2711 Fixes: #1461 --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 746773a..124b949 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -642,7 +642,7 @@ impl Opts { } else if !self.search_path.is_empty() { &self.search_path } else { - let current_directory = Path::new("."); + let current_directory = Path::new("./"); ensure_current_directory_exists(current_directory)?; return Ok(vec![self.normalize_path(current_directory)]); };