Fixed Git 2.35+ security check.

This commit is contained in:
Klaus Silveira
2025-08-18 09:51:56 -04:00
parent 30d69a631d
commit 2993417d4c

View File

@@ -24,6 +24,9 @@ class CommandLineTest extends TestCase
if (empty(shell_exec('which git 2> /dev/null'))) {
$this->markTestSkipped('Git is not available.');
}
// Git 2.35+ introduced ownership checks to prevent attacks when running git commands in directories owned by a different user
shell_exec('git config --global --add safe.directory "*"');
}
public function testIsValidatingRepository(): void