Skip to content

Commit

Permalink
Fixing appveyor (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Apr 27, 2024
1 parent 00b04be commit 17e1264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ build_script:
# Clone, build and install libgit2
- cmd: |
set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\venv
git clone --depth=1 -b v1.8.0 https://github.com/libgit2/libgit2.git libgit2
git clone --depth=1 -b main https://github.com/jdavid/libgit2.git libgit2
cd libgit2
cmake . -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" -G "%GENERATOR%"
cmake . -DUSE_HTTPS=ON -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" -G "%GENERATOR%"
cmake --build . --target install
cd ..
Expand Down
1 change: 1 addition & 0 deletions pygit2/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ def _certificate_cb(cert_i, valid, host, data):
# python's parsing is deep in the libraries and assumes an OpenSSL-owned cert
val = data.certificate_check(None, bool(valid), ffi.string(host))
if not val:
print('XXX C.GIT_ECERTIFICATE')
return C.GIT_ECERTIFICATE
except Passthrough:
if is_ssh:
Expand Down

0 comments on commit 17e1264

Please sign in to comment.