From 7c645010ee44d13b319247743551acad3cb29bce Mon Sep 17 00:00:00 2001 From: DustInDark Date: Wed, 30 Mar 2022 20:59:57 +0900 Subject: [PATCH] fixed process when yml file exist in .git folder * ignore when yml file exist in .git folder --- src/yaml.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/yaml.rs b/src/yaml.rs index 44fad448..e16ce277 100644 --- a/src/yaml.rs +++ b/src/yaml.rs @@ -154,6 +154,11 @@ impl ParseYaml { return io::Result::Ok(ret); } + // ignore if yml file in .git folder. + if path.to_str().unwrap().contains("/.git/") { + return io::Result::Ok(ret); + } + // 個別のファイルの読み込みは即終了としない。 let read_content = self.read_file(path); if read_content.is_err() {