We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lookup_commit()
1 parent cb4acd4 commit 8e32166Copy full SHA for 8e32166
1 file changed
t/helper/test-repository.c
@@ -23,6 +23,8 @@ static void test_parse_commit_in_graph(const char *gitdir, const char *worktree,
23
repo_set_hash_algo(the_repository, hash_algo_by_ptr(r.hash_algo));
24
25
c = lookup_commit(&r, commit_oid);
26
+ if (!c)
27
+ die("Could not look up %s", oid_to_hex(commit_oid));
28
29
if (!parse_commit_in_graph(&r, c))
30
die("Couldn't parse commit");
0 commit comments