From c5b6bce8865a715bf167451817a9e7d7fa8ef387 Mon Sep 17 00:00:00 2001 From: Christian Boos Date: Fri, 5 Apr 2013 14:40:25 +0200 Subject: [PATCH] pygit2 should work with libgit2 built with THREADSAFE=ON --- src/pygit2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pygit2.c b/src/pygit2.c index cafd5e0..cc6d08a 100644 --- a/src/pygit2.c +++ b/src/pygit2.c @@ -380,6 +380,9 @@ moduleinit(PyObject* m) PyModule_AddIntConstant(m, "GIT_CHECKOUT_DISABLE_PATHSPEC_MATC", GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH); + /* Global initialization of libgit2 */ + git_threads_init(); + return m; }