clar: Proper shutdown order
diff --git a/tests-clar/clar_helpers.c b/tests-clar/clar_helpers.c
index 8d6a702..f0ce37c 100644
--- a/tests-clar/clar_helpers.c
+++ b/tests-clar/clar_helpers.c
@@ -8,8 +8,8 @@ void clar_on_init(void)
void clar_on_shutdown(void)
{
- git_threads_shutdown();
giterr_clear();
+ git_threads_shutdown();
}
void cl_git_mkfile(const char *filename, const char *content)