tree-diff: rework diff_tree interface to be sha1 based
[gitweb.git] / notes-utils.c
index db4390081c8d49af959b35c45b4981f70c98f3db..2975dcd581024cd483953b47636466b79c95bafe 100644 (file)
@@ -18,7 +18,7 @@ void create_notes_commit(struct notes_tree *t, struct commit_list *parents,
                unsigned char parent_sha1[20];
                if (!read_ref(t->ref, parent_sha1)) {
                        struct commit *parent = lookup_commit(parent_sha1);
-                       if (!parent || parse_commit(parent))
+                       if (parse_commit(parent))
                                die("Failed to find/parse commit %s", t->ref);
                        commit_list_insert(parent, &parents);
                }