We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9925231 commit 69dab10Copy full SHA for 69dab10
crates/ignore/src/gitignore.rs
@@ -278,6 +278,7 @@ impl Gitignore {
278
// As an additional special case, if the root is just `.`, then we
279
// shouldn't try to strip anything, e.g., when path begins with a `.`.
280
if self.root != Path::new(".") && !is_file_name(path) {
281
+ dbg!(&self.root, &path);
282
if let Some(p) = strip_prefix(&self.root, path) {
283
path = p;
284
// If we're left with a leading slash, get rid of it.
0 commit comments