From a7b5e081737a9cc54919a95aed862bcb56510e1f 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 6e61636..7c7faa9 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -643,7 +643,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)]); };