diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-25 23:06:01 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-25 23:17:49 +0000 |
commit | 5bd77066d7b612e9f60b5e63d7cad6b34189ed23 (patch) | |
tree | f53dd1aede8c55b2b5863d8435f18f7d081b4171 | |
parent | 9da373a4a93b38d1d4b117cb1e9478c0abb7ecd0 (diff) | |
download | gall-5bd77066d7b612e9f60b5e63d7cad6b34189ed23.tar.gz |
Initialise libgit2 threading on module load.
-rw-r--r-- | lib/gall/ll/git2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gall/ll/git2.c b/lib/gall/ll/git2.c index 7aca7fa..ce72244 100644 --- a/lib/gall/ll/git2.c +++ b/lib/gall/ll/git2.c @@ -443,5 +443,9 @@ int luaopen_gall_ll_git2(lua_State *L) BASIC_FUNC(get_object_type); BASIC_FUNC(get_object_raw); BASIC_FUNC(get_tree_table); + +#if LIBGIT2_SOVERSION > 22 + git_libgit2_init(); +#endif return 1; } |