doc: group pretty-format.txt placeholders descriptions
[gitweb.git] / transport.c
index f4ffbd96cb65fdbac3c74d3d60c253bc3a8884f6..01ce11a32575fc8ca889ba99f610983ef150688d 100644 (file)
@@ -1413,9 +1413,9 @@ static void read_alternate_refs(const char *path,
        fh = xfdopen(cmd.out, "r");
        while (strbuf_getline_lf(&line, fh) != EOF) {
                struct object_id oid;
+               const char *p;
 
-               if (get_oid_hex(line.buf, &oid) ||
-                   line.buf[GIT_SHA1_HEXSZ]) {
+               if (parse_oid_hex(line.buf, &oid, &p) || *p) {
                        warning(_("invalid line while parsing alternate refs: %s"),
                                line.buf);
                        break;