We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1968cee commit d311646Copy full SHA for d311646
scriptmodules/admin/setup.sh
@@ -119,7 +119,7 @@ function updatescript_setup()
119
return 1
120
fi
121
local error
122
- if ! error=$(su $user -c "git pull 2>&1 >/dev/null"); then
+ if ! error=$(su $user -c "git pull --ff-only 2>&1 >/dev/null"); then
123
printMsgs "dialog" "Update failed:\n\n$error"
124
popd >/dev/null
125
scriptmodules/helpers.sh
@@ -417,7 +417,7 @@ function gitPullOrClone() {
417
if [[ -d "$dir/.git" ]]; then
418
pushd "$dir" > /dev/null
419
runCmd git checkout "$branch"
420
- runCmd git pull
+ runCmd git pull --ff-only
421
runCmd git submodule update --init --recursive
422
popd > /dev/null
423
else
0 commit comments