remote-curl: send the refs to fetch-pack on stdin