> @@ -2520,17 +2521,17 @@ static void read_object_list_from_stdin(void)
>                         continue;
>                 }
>                 if (line[0] == '-') {
> -                       if (get_sha1_hex(line+1, sha1))
> +                       if (get_oid_hex(line+1, &oid))
>                                 die("expected edge sha1, got garbage:\n %s",
>                                     line);
...

> -               if (get_sha1_hex(line, sha1))
> +               if (parse_oid_hex(line, &oid, &p))
>                         die("expected sha1, got garbage:\n %s", line);

Ideally we do not forget about converting the die() calls, too.

Reply via email to