From a973b5b0f6e94de6cd31abd25e0057a2c5038ecc Mon Sep 17 00:00:00 2001 From: DustInDark Date: Thu, 19 May 2022 20:57:57 +0900 Subject: [PATCH] added exclude condition to .git folder #524 --- src/yaml.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yaml.rs b/src/yaml.rs index 192fe41f..dc5ca046 100644 --- a/src/yaml.rs +++ b/src/yaml.rs @@ -155,7 +155,9 @@ impl ParseYaml { } // ignore if yml file in .git folder. - if path.to_str().unwrap().contains("/.git/") { + if path.to_str().unwrap().contains("/.git/") + || path.to_str().unwrap().contains("\\.git\\") + { return io::Result::Ok(ret); }