X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=update-remotes;fp=update-remotes;h=75f7f53568d3a757144844690a350e68f330ff15;hp=4c59b31f8512c2612eb2ec074f0b246d3f3510b9;hb=fe99855e1c76f5699a12eae8a5bab618a1e59e1e;hpb=f44ddfda37f0e9da0703067eb0db2adfd765ec48 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