We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lookup_commit()
1 parent 24e8e35 commit 548b20aCopy full SHA for 548b20a
t/helper/test-repository.c
@@ -27,6 +27,8 @@ static void test_parse_commit_in_graph(const char *gitdir, const char *worktree,
27
repo_set_hash_algo(the_repository, hash_algo_by_ptr(r.hash_algo));
28
29
c = lookup_commit(&r, commit_oid);
30
+ if (!c)
31
+ die("Could not look up %s", oid_to_hex(commit_oid));
32
33
if (!parse_commit_in_graph(&r, c))
34
die("Couldn't parse commit");
0 commit comments