libgit2/libgit2 — pull request #496 by kevsmith (2011-11-25 20:55:43+00:00)
Title: Init/cleanup threads for tests on threadsafe builds

Unit tests segfaulting on OS X Lion with THREADSAFE=ON. Adding a call to git_threads_init() in BEGIN_TEST and git_threads_shutdown() in END_TEST fixes the segfault.