fixed process when yml file exist in .git folder
* ignore when yml file exist in .git folder
This commit is contained in:
1 parent
425a629de7
commit
7c645010ee
1 file changed
+5
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user