Make upload_pack void and remove conditional return.