Skip to content

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

@evya-dev

Description

@evya-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions