fix(deploy): simplify push arguments for main branch

This commit is contained in:
2026-07-08 18:52:04 +08:00
parent 5578691197
commit c1aba64573
+1 -4
View File
@@ -13,10 +13,7 @@ push_to_remote() {
return 1 return 1
fi fi
local push_args=() local push_args=("--force")
if [ "$branch" = "main" ]; then
push_args+=("--force")
fi
echo "==========================================" echo "=========================================="
echo "git push ${push_args[*]-} $remote $branch ..." echo "git push ${push_args[*]-} $remote $branch ..."