]> git.phdru.name Git - git-scripts.git/blobdiff - update-remotes
Feat(update-remotes): Push additional branches to `web`
[git-scripts.git] / update-remotes
index 2eb9427fa531243a8a680c2b9fa5dc55a75ec870..4c59b31f8512c2612eb2ec074f0b246d3f3510b9 100755 (executable)
@@ -16,11 +16,12 @@ elif [ -z "$current" ]; then
    exit 1
 fi
 
-{ git pull --ff-only current master || git reset --hard current/master } &&
+git fetch current &&
+{ git pull --ff-only current master || git reset --hard current/master ; } &&
 
 web="`git config --get --path remote.web.url`" &&
 if [ -n "$web" ]; then
-   git push web
+   git push web "$@"
 fi &&
 
 cd "$current" && exec git pull origin