Skip to content

Commit d311646

Browse files
committed
helpers / setup - add --ff-only for git pull to avoid warnings on recent versions of git
1 parent 1968cee commit d311646

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scriptmodules/admin/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function updatescript_setup()
119119
return 1
120120
fi
121121
local error
122-
if ! error=$(su $user -c "git pull 2>&1 >/dev/null"); then
122+
if ! error=$(su $user -c "git pull --ff-only 2>&1 >/dev/null"); then
123123
printMsgs "dialog" "Update failed:\n\n$error"
124124
popd >/dev/null
125125
return 1

scriptmodules/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function gitPullOrClone() {
417417
if [[ -d "$dir/.git" ]]; then
418418
pushd "$dir" > /dev/null
419419
runCmd git checkout "$branch"
420-
runCmd git pull
420+
runCmd git pull --ff-only
421421
runCmd git submodule update --init --recursive
422422
popd > /dev/null
423423
else

0 commit comments

Comments
 (0)