mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
feat: always force push
This commit is contained in:
@@ -696,11 +696,8 @@ if ($command == 'update' || $command == 'activate') {
|
||||
exec_log('git -C /boot add -A');
|
||||
exec_log('git -C /boot commit -m ' . escapeshellarg($commitmsg));
|
||||
|
||||
// push changes upstream
|
||||
exec_log('git -C /boot push --set-upstream origin master', $push_output, $return_var);
|
||||
if ($return_var != 0) {
|
||||
exec_log('git -C /boot push --force --set-upstream origin master', $push_output, $return_var);
|
||||
}
|
||||
// push changes upstream
|
||||
exec_log('git -C /boot push --force --set-upstream origin master', $push_output, $return_var);
|
||||
if ($return_var != 0) {
|
||||
// check for permission denied
|
||||
if (stripos(implode($push_output),'permission denied') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user