Add a ReInit function (#647) #649

Merged
github-actions[bot] merged 1 commits from cherry-pick-279412635-release-0.27 into release-0.27 2020-09-29 17:51:32 -05:00

1 Commits

Author SHA1 Message Date
Jesse Hathaway 86d0d53f1b Add a ReInit function (#647)
libgit2 stores the lookup paths for gitconfig files in its global state.
This means that after a program changes its effective uid libgit2 will
still look for gitconfig files in the home directory of the original
uid. Expose a way to call C.git_libgit2_init so a user can reinitialize
the libgit2 global state.

(cherry picked from commit 3c5c580d78)
2020-09-29 22:42:37 +00:00