diff options
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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. |
