mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-07 14:25:58 +01:00
Fixed Git 2.35+ security check.
This commit is contained in:
@@ -24,6 +24,9 @@ class CommandLineTest extends TestCase
|
|||||||
if (empty(shell_exec('which git 2> /dev/null'))) {
|
if (empty(shell_exec('which git 2> /dev/null'))) {
|
||||||
$this->markTestSkipped('Git is not available.');
|
$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
|
public function testIsValidatingRepository(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user