Workaround for bug with gitinored files

This is a workaround for
https://github.com/BurntSushi/ripgrep/issues/2711

Fixes: #1461
This commit is contained in:
Thayne McCombs 2024-03-13 23:46:30 -06:00 committed by David Peter
parent c4094c7a05
commit 6af8f092ee

View file

@ -642,7 +642,7 @@ impl Opts {
} else if !self.search_path.is_empty() { } else if !self.search_path.is_empty() {
&self.search_path &self.search_path
} else { } else {
let current_directory = Path::new("."); let current_directory = Path::new("./");
ensure_current_directory_exists(current_directory)?; ensure_current_directory_exists(current_directory)?;
return Ok(vec![self.normalize_path(current_directory)]); return Ok(vec![self.normalize_path(current_directory)]);
}; };