diff --git a/.gitignore b/.gitignore index 6890eea..713629c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ rebar ebin/ .eunit +.rebar/ +_build/ \ No newline at end of file diff --git a/c_src/geef.c b/c_src/geef.c index b854e1f..e0b60ff 100644 --- a/c_src/geef.c +++ b/c_src/geef.c @@ -31,7 +31,7 @@ geef_atoms atoms; static int load(ErlNifEnv *env, void **priv, ERL_NIF_TERM load_info) { - git_threads_init(); + git_libgit2_init(); geef_repository_type = enif_open_resource_type(env, NULL, "repository_type", geef_repository_free, ERL_NIF_RT_CREATE, NULL); @@ -99,7 +99,7 @@ int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM static void unload(ErlNifEnv* env, void* priv_data) { - git_threads_shutdown(); + git_libgit2_shutdown(); } ERL_NIF_TERM