diff options
Diffstat (limited to 'tests/refs/reflog/reflog.c')
-rw-r--r-- | tests/refs/reflog/reflog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/refs/reflog/reflog.c b/tests/refs/reflog/reflog.c index 3a6c97c44..cf8c5c2d3 100644 --- a/tests/refs/reflog/reflog.c +++ b/tests/refs/reflog/reflog.c @@ -253,11 +253,11 @@ void test_refs_reflog_reflog__reading_a_reflog_with_invalid_format_returns_error cl_assert(strstr(git_buf_cstr(&logcontents), "Reflog\nmessage") != NULL); /* clear the error state so we can capture the error generated by git_reflog_read */ - giterr_clear(); + git_error_clear(); cl_git_fail(git_reflog_read(&reflog, g_repo, refname)); - error = giterr_last(); + error = git_error_last(); cl_assert(error != NULL); cl_assert_equal_s("unable to parse OID - contains invalid characters", error->message); |