auto-rebase: add -f to the filter-branch invocation (#432514)

This commit is contained in:
Matt Sturgeon
2026-03-31 19:07:20 +00:00
committed by GitHub
+1 -1
View File
@@ -45,7 +45,7 @@ for line in "${autoLines[@]}"; do
# commit is unchanged. This is why the following is also necessary:
# - The tree filter runs the command on each of our own commits,
# effectively reapplying it.
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch \
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch -f \
--parent-filter "sed 's/$parent/$autoCommit/'" \
--tree-filter "$autoCmd" \
"$autoCommit"..HEAD