From 8fa6638297b4b2a22e339f264e3ead3e6b9e4ae3 Mon Sep 17 00:00:00 2001 From: NickSdot <32384907+NickSdot@users.noreply.github.com> Date: Wed, 2 Sep 2026 19:02:37 +0700 Subject: [PATCH] Excludes `.git` from `run-tests.php .` --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 8728c0d7524b..b0645cbef0d2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1100,7 +1100,7 @@ function find_files(string $dir, bool $is_ext_dir = false, bool $ignore = false) $o = opendir($dir) or error("cannot open directory: $dir"); while (($name = readdir($o)) !== false) { - if (is_dir("{$dir}/{$name}") && !in_array($name, ['.', '..', '.svn'])) { + if (is_dir("{$dir}/{$name}") && !in_array($name, ['.', '..', '.svn', '.git'])) { $skip_ext = ($is_ext_dir && !in_array($name, $exts_to_test)); if ($skip_ext) { $exts_skipped[] = $name;