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

LibGit2Sharp throws an exception when discovering a git config with setting core.repositoryformatversion=1 and extensions.worktreeconfig=true #2109

Open
evya-dev opened this issue Jul 9, 2024 · 1 comment

Comments

@evya-dev
Copy link

evya-dev commented Jul 9, 2024

You are opening a bug report against the LibGit2Sharp project: we
use GitHub Issues for tracking bug reports and feature requests. If
you have a question about an API or usage, please ask on StackOverflow:
http://stackoverflow.com/questions/tagged/libgit2sharp.

Otherwise, to report a bug, please fill out the reproduction steps
(below) and delete these introductory paragraphs. Thanks!

Reproduction steps

Use a downstream app such as GitVersion with a repo config with core.repositoryformatversion=1 and extensions.worktreeconfig=true.
An exception is bubbled up by libgit2sharp unsupported extension name extensions.worktreeconfig

Expected behavior

No error and a gitversion.json file is generated with the SemVer.

Actual behavior

unsupported extension name extensions.worktreeconfig

Version of LibGit2Sharp (release number or SHA1)

0.30.0

Operating system(s) tested; .NET runtime tested

Windows 11, .NET 5

@evya-dev
Copy link
Author

evya-dev commented Jul 9, 2024

The underlying exception is bubbling up from native code. The fix is to update the native libraries from 1.7.2 to >=1.8.0.

There is an existing pull request in the libgit2hsharp.nativebinaries to do just that (just needs to be reviewed and or approved by someone authorized):
libgit2/libgit2sharp.nativebinaries#155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant