summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_context.hpp
AgeCommit message (Collapse)Author
2023-05-15memcheck: fix race in libgit2...Paul Cristian Sarbu
...caused by incorrectly setting and resetting the library internal state and the misuse of pthreads in libgit2. Normally, git_libgit2_init and git_libgit2_shutdown should span the life of a worker thread in order to be safely used. However, due to an incorrect implementation of libgit2's threadstate with pthreads, on unix systems there is a race condition. Until the use of pthread_key_t is corrected in libgit2, we need to apply a workaround by always ensuring that the main thread is the first thread reaching the GitContext constructor.
2022-12-20Git CAS: Add a Git context class to maintain the libgit2 statePaul Cristian Sarbu