summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-12-05 11:45:39 +0100
committerCarlos Martín Nieto <[email protected]>2014-12-05 11:45:39 +0100
commit1d0a688411be0d79d5ed8257c8a70d0d151e4ef7 (patch)
tree32ff46e2c994351a081dcd6ef7ffc96478ecb42c /git.go
parent17963043741d7057cae1782032d022af0cd053fb (diff)
parent1d759e3697c9236916ffb782b3721a96760bfc07 (diff)
Merge pull request #144 from libgit2/update
Update to master
Diffstat (limited to 'git.go')
-rw-r--r--git.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/git.go b/git.go
index adfa3b0..72d8d03 100644
--- a/git.go
+++ b/git.go
@@ -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.