From fe99855e1c76f5699a12eae8a5bab618a1e59e1e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 17 Dec 2023 15:45:21 +0300 Subject: [PATCH] Feat(update-remotes): Force-push branches to `web` Always force-push `master` and additional branches to `web`. --- update-remotes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-remotes b/update-remotes index 4c59b31..75f7f53 100755 --- a/update-remotes +++ b/update-remotes @@ -2,6 +2,7 @@ current="`git config --get --path remote.current.url`" origin="`git config --get --path remote.origin.url`" +branches="master ${1:+$@}" if [ -n "$origin" ]; then if [ -n "$current" ]; then @@ -21,7 +22,7 @@ git fetch current && web="`git config --get --path remote.web.url`" && if [ -n "$web" ]; then - git push web "$@" + git push --force web $branches fi && cd "$current" && exec git pull origin -- 2.39.2