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:
@ -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"));
|
||||
|
Reference in New Issue
Block a user