verify_lock(): return 0/-1 rather than struct ref_lock *
[gitweb.git] / log-tree.c
index c931615d9267fd774d886e5414e051a25895ffdf..8dba7be92e34e511b1d464983bb6d13861f1555e 100644 (file)
@@ -139,7 +139,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);