diagnose_invalid_index_path: use strbuf to avoid strcpy/strcat
[gitweb.git] / send-pack.c
index f5bc098b390cbb716dc3d5a98230bc97308fa904..c6a40307381257c070714c778ea9d96f4c676387 100644 (file)
@@ -205,7 +205,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;
 }