Open PranjaliParnerkar opened 12 months ago
I have the same issue
I worked around the problem recompiling libgit2 to use Schannel instead of WinHTTP and now it works. Sadly we have to patch it manually since there's no pygit2 distribution for windows with libgit2 compiled with Schannel.
@accodev do you have an example of how you switch them over?
The process is pretty straight forward, but I strongly advise against using this in production:
$ mkdir build && cd build
$ cmake .. -DUSE_HTTPS=Schannel
$ cmake --build . --config Release
$ cmake --install . --config Release --prefix /path/to/your/pygit2/installation
You can either use cmake --install
(with a correct --prefix) or copy the git2.dll manually to where pygit2
is installed, e.g.: C:\Users\<your_user>\AppData\Local\Programs\Python\Python311\Lib\site-packages\pygit2
I am trying to clone private github repository using pygit2 module but getting the below error.
Below is the source code I am using
I am using python 3.9 and have tried pygit2 version 1.10.1 and 1.12.0 and both are giving the same error. Are there any changes made to the callbacks recently which is creating this issue?