mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 22:21:37 +00:00
Merge pull request #2544 from linquize/test-push
MSVC does not support zero size array
This commit is contained in:
commit
69b584593e
@ -864,7 +864,6 @@ void test_online_push__notes(void)
|
|||||||
push_status exp_stats[] = { { "refs/notes/commits", 1 } };
|
push_status exp_stats[] = { { "refs/notes/commits", 1 } };
|
||||||
expected_ref exp_refs[] = { { "refs/notes/commits", &expected_oid } };
|
expected_ref exp_refs[] = { { "refs/notes/commits", &expected_oid } };
|
||||||
const char *specs_del[] = { ":refs/notes/commits" };
|
const char *specs_del[] = { ":refs/notes/commits" };
|
||||||
expected_ref exp_refs_del[] = { };
|
|
||||||
|
|
||||||
git_oid_fromstr(&expected_oid, "8461a99b27b7043e58ff6e1f5d2cf07d282534fb");
|
git_oid_fromstr(&expected_oid, "8461a99b27b7043e58ff6e1f5d2cf07d282534fb");
|
||||||
|
|
||||||
@ -882,7 +881,7 @@ void test_online_push__notes(void)
|
|||||||
|
|
||||||
do_push(specs_del, ARRAY_SIZE(specs_del),
|
do_push(specs_del, ARRAY_SIZE(specs_del),
|
||||||
exp_stats, 1,
|
exp_stats, 1,
|
||||||
exp_refs_del, ARRAY_SIZE(exp_refs_del), 0, 0, 0);
|
NULL, 0, 0, 0, 0);
|
||||||
|
|
||||||
git_signature_free(signature);
|
git_signature_free(signature);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user