workflows/sponsors-maintainers-man-completions: force checkout.

We haven't run any commands that would have modified the working
directory yet so this will better handle issues with stale files.
This commit is contained in:
Mike McQuaid 2025-01-08 14:02:05 +00:00
parent cbf92f31a8
commit 22433ddd19
No known key found for this signature in database

View File

@ -70,13 +70,13 @@ jobs:
if git ls-remote --exit-code --heads origin "${BRANCH}" if git ls-remote --exit-code --heads origin "${BRANCH}"
then then
git checkout "${BRANCH}" git checkout --force "${BRANCH}"
git checkout "README.md" \ git checkout "README.md" \
"docs/Manpage.md" \ "docs/Manpage.md" \
"manpages/brew.1" \ "manpages/brew.1" \
"completions" "completions"
else else
git checkout --no-track -B "${BRANCH}" origin/master git checkout --force --no-track -B "${BRANCH}" origin/master
fi fi
if brew update-sponsors if brew update-sponsors