summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'git.go')
-rw-r--r--git.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/git.go b/git.go
index adfa3b0..8e78710 100644
--- a/git.go
+++ b/git.go
@@ -2,7 +2,7 @@ package git
/*
#include <git2.h>
-#include <git2/errors.h>
+#include <git2/sys/openssl.h>
*/
import "C"
import (
@@ -93,7 +93,14 @@ var (
)
func init() {
- C.git_threads_init()
+ C.git_libgit2_init()
+
+ // This is not something we should be doing, as we may be
+ // stomping all over someone else's setup. The user should do
+ // this themselves or use some binding/wrapper which does it
+ // in such a way that they can be sure they're the only ones
+ // setting it up.
+ C.git_openssl_set_locking()
}
// Oid represents the id for a Git object.