Skip to content

Commit 24c499c

Browse files
committed
Add some more git flags for safety
1 parent 5d9d51e commit 24c499c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-submodules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
git config user.name "DFHack-Urist via GitHub Actions"
2626
git config user.email "DFHack-Urist@users.noreply.github.com"
2727
if bash -x ci/update-submodules.bash; then
28-
git push
28+
git push --recurse-submodules=check
2929
fi

ci/update-submodules.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cat ci/update-submodules.manifest | while read path branch; do
2222
cd "${git_root}/${path}"
2323
test "${git_root}" != "$(get_git_root)"
2424
git checkout "${branch}"
25-
git pull
25+
git pull --ff-only
2626
cd "${git_root}"
2727
if ! git diff --quiet --ignore-submodules=dirty -- "${path}"; then
2828
git add "${path}"

0 commit comments

Comments
 (0)