mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 00:43:41 +00:00
Make work if built with threading enabled
This commit is contained in:
parent
b2395a8267
commit
0c52b204c5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user