mirror of
https://github.com/unraid/api.git
synced 2026-05-07 23:51:40 -05:00
feat: always force push
This commit is contained in:
+2
-5
@@ -696,11 +696,8 @@ if ($command == 'update' || $command == 'activate') {
|
|||||||
exec_log('git -C /boot add -A');
|
exec_log('git -C /boot add -A');
|
||||||
exec_log('git -C /boot commit -m ' . escapeshellarg($commitmsg));
|
exec_log('git -C /boot commit -m ' . escapeshellarg($commitmsg));
|
||||||
|
|
||||||
// push changes upstream
|
// push changes upstream
|
||||||
exec_log('git -C /boot push --set-upstream origin master', $push_output, $return_var);
|
exec_log('git -C /boot push --force --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);
|
|
||||||
}
|
|
||||||
if ($return_var != 0) {
|
if ($return_var != 0) {
|
||||||
// check for permission denied
|
// check for permission denied
|
||||||
if (stripos(implode($push_output),'permission denied') !== false) {
|
if (stripos(implode($push_output),'permission denied') !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user