summaryrefslogtreecommitdiff
path: root/tests/online/push.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-09-13 05:38:29 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-09-13 05:38:29 +0200
commit1af5aecb965817901fa9134222bad4e0579de7a4 (patch)
tree1fc5ca4d9ae7504034aaf54abeb90c25cb68f21b /tests/online/push.c
parentdc5b678fda918386f01630d2bc928edb546ac4f2 (diff)
downloadlibgit2-cmn/push-tests-inline-oid.tar.gz
push: put the git_oid inline in the test structurecmn/push-tests-inline-oid
These are small pieces of data, so there is no advantage to allocating them separately. Include the two ids inline in the struct we use to check that the expected and actual ids match.
Diffstat (limited to 'tests/online/push.c')
-rw-r--r--tests/online/push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/online/push.c b/tests/online/push.c
index 0b0892c97..efb763c24 100644
--- a/tests/online/push.c
+++ b/tests/online/push.c
@@ -299,7 +299,7 @@ static void verify_update_tips_callback(git_remote *remote, expected_ref expecte
goto failed;
}
- if (git_oid_cmp(expected_refs[i].oid, tip->new_oid) != 0) {
+ if (git_oid_cmp(expected_refs[i].oid, &tip->new_oid) != 0) {
git_buf_printf(&msg, "Updated tip ID does not match expected ID");
failed = 1;
goto failed;