Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of libgit2 built without thread support #918

Closed
wants to merge 1 commit into from
Closed

Allow use of libgit2 built without thread support #918

wants to merge 1 commit into from

Commits on Jul 18, 2022

  1. Allow use of libgit2 built without thread support

    With smart transport, users using solely Managed Transports can rely on
    Go to deal with the multi-threading requirements of transport
    management.
    
    To enable threadless libgit2 an environment variable
    ALLOW_THREADLESS_LIBGIT2 must be set to true.
    
    As long as the git2go objects are not being shared across Go routines
    this arrangement seems to work well.
    
    By leveraging this and the removal of unmanaged transport we have
    experienced a decrease in segfaults or random errors when using git2go
    for accessing multiple Git repositories concurrently.
    
    Fixes #917.
    
    Signed-off-by: Paulo Gomes <[email protected]>
    pjbgf committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    63fea0e View commit details
    Browse the repository at this point in the history