X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=update-remotes;h=75f7f53568d3a757144844690a350e68f330ff15;hb=682002cec47ddc2bacdb64c636d5df581a1029b4;hp=6fabc29a60439b086d47c6fbbb0b17e8e1c7e5db;hpb=7024dc2389ef6f1f490e97502c246fb79813095d;p=git-scripts.git diff --git a/update-remotes b/update-remotes index 6fabc29..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