Commit 0c52b204 by Russell Belfer

Make work if built with threading enabled

parent b2395a82
......@@ -106,6 +106,8 @@ int main (int argc, char** argv)
return 1;
}
git_threads_init();
init_array(&array, argc-i, argv+i);
if (git_repository_open(&repo, ".") < 0) {
......@@ -135,5 +137,7 @@ int main (int argc, char** argv)
git_index_free(index);
git_repository_free(repo);
git_threads_shutdown();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment