Skip to content

Possible In-memory repository regression? #1479

@Zoxive

Description

@Zoxive

So I'm trying to get my branch updated with master https://github.com/Zoxive/libgit2sharp/tree/zoxive/refdb/ which revives the pluggable RefDb backend (#1226)

I've gotten through all the compile issues rebasing it up to the latest with dotnet core, and the codegen stuff. (Took a while to figure out that I had to change all the NativeMethod funcs to use the new custom marshaler)

Anyways all compiles and stuff now.. but testing my changes im running into an error that appears to be coming straight from libgit2.

LibGit2SharpException: path cannot exist in repository

It happens when i have an in memory repository and an OdbBackend.

Heres a sample unit test that shows the problem.
Zoxive@7957581

I did see that libgit2 had a regression (libgit2/libgit2#4263) @ethomson fixed.
I'm guessing its related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions