remote: convert fetch refspecs to struct refspec