Skip to content

Commit 37bf060

Browse files
committed
Use git_libgit2_init for global initialization
1 parent 10463ea commit 37bf060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ObjectiveGit/ObjectiveGit.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
77
//
88

9-
#import "git2/threads.h"
9+
#import "git2/global.h"
1010

1111
__attribute__((constructor))
12-
static void GTSetupThreads(void) {
13-
git_threads_init();
12+
static void GTSetup(void) {
13+
git_libgit2_init();
1414
}

0 commit comments

Comments
 (0)