From 00fcc997ce173349694a67801d0b8f4d9db8c0eb Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 7 Aug 2020 18:32:44 +0200 Subject: [PATCH] Exclude .git in MD_STD::scandir --- MD_STD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MD_STD.php b/MD_STD.php index e82532f..37bc600 100644 --- a/MD_STD.php +++ b/MD_STD.php @@ -63,7 +63,7 @@ class MD_STD { throw new MDFileDoesNotExist("There is no file {$filepath}"); } - return array_values(array_diff($output, ['.', '..'])); + return array_values(array_diff($output, ['.', '..', '.git'])); }