Added a special case for connecting master on push