Here you go:
$ while ! git push my; do sleep 1; done
Works for me eventually, although commits do not appear in web interface (they do in the actual repository).