builtin-am: auto-detect mbox patches
[gitweb.git] / send-pack.c
index 2e07ac3339bce870b12e0023dc985929a277ebef..2a64fec949ea9495b5b9512399cec7979319de1c 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;
 }