remote-curl: Add a format check to parsing of info/refs