Skip to content

Conversation

JohannesWilde
Copy link
Contributor

src\libgit2\transports\auth_negotiate.h redefines git_http_auth_negotiate as git_http_auth_dummy if GIT_AUTH_NEGOTIATE is not defined, which thus leads to the uncommented code actually being a redifintion of git_http_auth_dummy. The linker complained [Windows 11, MSVC 2022 64bit].

JohannesWilde and others added 2 commits May 24, 2025 13:31
src\libgit2\transports\auth_negotiate.h redefines git_http_auth_negotiate as git_http_auth_dummy if GIT_AUTH_NEGOTIATE is not defined, which thus leads to the uncommented code actually being a redifintion of git_http_auth_dummy. The linker complained [Windows 11, MSVC 2022 64bit].
Avoid defining `git_http_auth_ntlm` when not using ntlm; this will be
set to a dummy function instead.
@ethomson
Copy link
Member

ethomson commented Jun 5, 2025

Good catch - I think that we need to do the same thing on the AUTH_NTLM case; I pushed up a commit to add that test as well. Will merge this once the CI completes green. 🙏

@ethomson
Copy link
Member

ethomson commented Jun 5, 2025

Thanks for the fix!

@ethomson ethomson merged commit dbc19dc into libgit2:main Jun 5, 2025
19 checks passed
@ethomson ethomson added the build label Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants