commit: convert parts to struct object_id
[gitweb.git] / send-pack.c
index 25947d7df9dd3af6e665d5d5eb63ec970617aef1..fa7701b8ff9f95c3101480a677a91d0aedfbd76e 100644 (file)
@@ -182,7 +182,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
 {
        struct strbuf *sb = cb;
        if (graft->nr_parent == -1)
-               packet_buf_write(sb, "shallow %s\n", sha1_to_hex(graft->sha1));
+               packet_buf_write(sb, "shallow %s\n", oid_to_hex(&graft->oid));
        return 0;
 }