branches="master ${1:+$@}"
current="`git config --get --path remote.current.url`" || :
origin="`git config --get --path remote.origin.url`" || :
+web="`git config --get --path remote.web.url`" || :
+remotes="`git config --get update-remotes.remotes`" || :
if [ -n "$origin" ]; then
if [ -n "$current" ]; then
{ git pull --ff-only current master || git reset --hard current/master ; }
git set-date
-web="`git config --get --path remote.web.url`"
if [ -n "$web" ]; then
git push --force web $branches
fi
cd "$current"
+
+for remote in $remotes; do
+ git push --force $remote $branches
+done
+
git pull origin
exec git set-date