Skip to content

Failed to parse index (GIT_EOBJCORRUPTED (-28)) #146

@kaisellgren

Description

@kaisellgren

I received this error message:

  _message    "An error was raised by libgit2. Error code = GIT_EOBJCORRUPTED (-28).\r\nFailed to parse index \n\t- Failed to parse index. Extension size is zero"    string

When doing this:

LibGit2Sharp.Repository repo = new LibGit2Sharp.Repository(FullPath);

Here's a test case, a little test repo you can try: https://docs.google.com/open?id=0B-3-X85VysdNSHRDVWFTNzM0enc

I merged topic-2 branch into master, and then I committed a new file to topic-2 and it keeps crashing after that.

I'm using the latest released version. Should I build and try a recent version?

Update: It works fine in Git cli and TortoiseGit.

Just for reference:

b8b8819 HEAD@{0}: commit: Added test.txt
50a2725 HEAD@{1}: merge master: Merge made by recursive.
ec42713 HEAD@{2}: checkout: moving from master to topic-2
788bd4c HEAD@{3}: merge topic-1: Merge made by recursive.
634ec14 HEAD@{4}: checkout: moving from master to master
634ec14 HEAD@{5}: checkout: moving from topic-2 to master
ec42713 HEAD@{6}: commit: Added file.
fda8d19 HEAD@{7}: checkout: moving from master to topic-2
634ec14 HEAD@{8}: commit: Added file.
fda8d19 HEAD@{9}: checkout: moving from topic-1 to master
88bca54 HEAD@{10}: commit: Added file.
fda8d19 HEAD@{11}: checkout: moving from master to topic-1
fda8d19 HEAD@{12}: commit (initial): Initial commit.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions