apply: convert threeway_stage to object_id
[gitweb.git] / log-tree.c
index 7f0890e4ac14348e78f7f1e305629fa745a79392..51cc695ae5dfe284c486069c25a624840a2ce490 100644 (file)
@@ -137,7 +137,7 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
 
 static int add_graft_decoration(const struct commit_graft *graft, void *cb_data)
 {
-       struct commit *commit = lookup_commit(graft->sha1);
+       struct commit *commit = lookup_commit(graft->oid.hash);
        if (!commit)
                return 0;
        add_name_decoration(DECORATION_GRAFTED, "grafted", &commit->object);