Commit cf323cb9 by Edward Thomson

refs: test git_reference_create_matching failure for zero oid

parent 95b7a639
...@@ -30,7 +30,10 @@ void test_refs_races__create_matching_zero_old(void) ...@@ -30,7 +30,10 @@ void test_refs_races__create_matching_zero_old(void)
git_oid_fromstr(&id, commit_id); git_oid_fromstr(&id, commit_id);
git_oid_fromstr(&zero_id, "0000000000000000000000000000000000000000"); git_oid_fromstr(&zero_id, "0000000000000000000000000000000000000000");
cl_git_fail(git_reference_create_matching(&ref, g_repo, refname, &id, 1, &zero_id, NULL));
cl_git_pass(git_reference_create_matching(&ref, g_repo, other_refname, &id, 1, &zero_id, NULL)); cl_git_pass(git_reference_create_matching(&ref, g_repo, other_refname, &id, 1, &zero_id, NULL));
cl_git_fail(git_reference_create_matching(&ref, g_repo, other_refname, &id, 1, &zero_id, NULL));
git_reference_free(ref); git_reference_free(ref);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment