You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that git_diff_index_to_workdir returns an error: Last error: failed to parse config file: invalid configuration key (in Repo/.gitmodules:3
Seems that libgit2 is not capable of handling merge conflicts in .gitmodules
I doubt it's intentional. The code seems to anticipate this situation, but not implement a fallback / handling of it. I'll write an issue and see what can be done about this.
Activity
Murmele commentedon Dec 1, 2025
GittyupTestHiddenFileConflict.zip
Check git status and in the gui
Murmele commentedon Dec 2, 2025
The problem is that
git_diff_index_to_workdirreturns an error:Last error: failed to parse config file: invalid configuration key (in Repo/.gitmodules:3Seems that libgit2 is not capable of handling merge conflicts in .gitmodules
AHSauge commentedon Jan 10, 2026
Nice corner case you've got there. Is there an upstream issue on this? Plain libgit2 also fails, or at the very least the git status example does.
Murmele commentedon Jan 11, 2026
I didn't check libgit2 if there exists an issue. Perhabs I did not document where I have seen that libgit2 does not support
AHSauge commentedon Jan 11, 2026
I doubt it's intentional. The code seems to anticipate this situation, but not implement a fallback / handling of it. I'll write an issue and see what can be done about this.
AHSauge commentedon Jan 11, 2026
libgit2/libgit2#7191
Murmele commentedon Jan 12, 2026
Thanks for creating this really informative issue!