format_config: don't init strbuf
[gitweb.git] / upload-pack.c
index aa845765009ac7fb9105851306c3288b3f602369..745fda8515313fa0629489f36aee0ba49fb7d822 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;
 }