Tries to fix gits extremely annoying useless "security feature" that makes no sense and they should be ashamed to implement such bs

This commit is contained in:
2025-06-24 00:43:08 +02:00
parent d020934527
commit ffb3e11e45

View File

@ -1,6 +1,7 @@
<?php
$mode = $_GET['mode'] ?? 'git';
$repoPath = '/usr/thos';
shell_exec("git config --system --add safe.directory /usr/thos");
function getLatestLocalCommit($path) {
return trim(shell_exec("git -C $path rev-parse HEAD"));