summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-25 23:06:01 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-25 23:17:49 +0000
commit5bd77066d7b612e9f60b5e63d7cad6b34189ed23 (patch)
treef53dd1aede8c55b2b5863d8435f18f7d081b4171
parent9da373a4a93b38d1d4b117cb1e9478c0abb7ecd0 (diff)
downloadgall-5bd77066d7b612e9f60b5e63d7cad6b34189ed23.tar.bz2
Initialise libgit2 threading on module load.
-rw-r--r--lib/gall/ll/git2.c4
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;
}