summaryrefslogtreecommitdiff
path: root/tests/clone
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-07-02 15:29:25 +0200
committerVicent Marti <vicent@github.com>2014-07-02 15:29:25 +0200
commitc1bf2942fcdc90883987c37a782b599d8969e747 (patch)
tree01b176117d561a3f3f2adf4c1147f7ffb0be8050 /tests/clone
parent4df4ebd7c772a6dca577fd2968d7f81e72e4cff2 (diff)
parent9879fee184adaace842ed4bb055fd2942d975591 (diff)
downloadlibgit2-c1bf2942fcdc90883987c37a782b599d8969e747.tar.gz
Merge pull request #2455 from ethomson/equal_oid
Introduce `cl_assert_equal_oid`
Diffstat (limited to 'tests/clone')
-rw-r--r--tests/clone/nonetwork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clone/nonetwork.c b/tests/clone/nonetwork.c
index 824988a58..e9853313e 100644
--- a/tests/clone/nonetwork.c
+++ b/tests/clone/nonetwork.c
@@ -241,7 +241,7 @@ void test_clone_nonetwork__can_detached_head(void)
cl_assert(git_repository_head_detached(cloned));
cl_git_pass(git_repository_head(&cloned_head, cloned));
- cl_assert(!git_oid_cmp(git_object_id(obj), git_reference_target(cloned_head)));
+ cl_assert_equal_oid(git_object_id(obj), git_reference_target(cloned_head));
cl_git_pass(git_reflog_read(&log, cloned, "HEAD"));
entry = git_reflog_entry_byindex(log, 0);