commit: convert parts to struct object_id
[gitweb.git] / upload-pack.c
index b531a325d2864e94bdc86e689f78663255bb7cf2..0566ce04b933dd5cb631646fb47f9844da43e94f 100644 (file)
@@ -74,7 +74,7 @@ static int write_one_shallow(const struct commit_graft *graft, void *cb_data)
 {
        FILE *fp = cb_data;
        if (graft->nr_parent == -1)
-               fprintf(fp, "--shallow %s\n", sha1_to_hex(graft->sha1));
+               fprintf(fp, "--shallow %s\n", oid_to_hex(&graft->oid));
        return 0;
 }