Extend read_ref_at() to be usable from places other than sha1_name.