summaryrefslogtreecommitdiff
path: root/tests/libgit2/repo/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libgit2/repo/head.c')
-rw-r--r--tests/libgit2/repo/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/repo/head.c b/tests/libgit2/repo/head.c
index 822990555..c886c3f79 100644
--- a/tests/libgit2/repo/head.c
+++ b/tests/libgit2/repo/head.c
@@ -99,7 +99,7 @@ void test_repo_head__set_head_detached_Return_ENOTFOUND_when_the_object_doesnt_e
{
git_oid oid;
- cl_git_pass(git_oid_fromstr(&oid, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"));
+ cl_git_pass(git_oid__fromstr(&oid, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef", GIT_OID_SHA1));
cl_assert_equal_i(GIT_ENOTFOUND, git_repository_set_head_detached(repo, &oid));
}