Fixed a new bug when pushing to an http remote.