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
|
<?php
|
||||||
$mode = $_GET['mode'] ?? 'git';
|
$mode = $_GET['mode'] ?? 'git';
|
||||||
$repoPath = '/usr/thos';
|
$repoPath = '/usr/thos';
|
||||||
|
shell_exec("git config --system --add safe.directory /usr/thos");
|
||||||
|
|
||||||
function getLatestLocalCommit($path) {
|
function getLatestLocalCommit($path) {
|
||||||
return trim(shell_exec("git -C $path rev-parse HEAD"));
|
return trim(shell_exec("git -C $path rev-parse HEAD"));
|
||||||
|
Reference in New Issue
Block a user