Fix updating remote refs and push & clone
There was some logic in place for this, but it was broken. In particular, the behaviour is subtly different when pushing to local repositories and pushing using e.g. HTTP.
There was some logic in place for this, but it was broken. In particular, the behaviour is subtly different when pushing to local repositories and pushing using e.g. HTTP.