Skip to content

Conflicts in .gitmodules not visible #898

Open

Description

@Murmele

If there is a conflict only in a .gitmodules, Gittyup does not show anything. But with git status it is visible

Activity

  1. Murmele commented on Dec 1, 2025

    @Murmele
    OwnerAuthor

    GittyupTestHiddenFileConflict.zip

    Check git status and in the gui

  2. Murmele commented on Dec 2, 2025

    @Murmele
    OwnerAuthor

    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

    [submodule "GittyupTestHiddenFileConflictSubmodule"]
    	path = GittyupTestHiddenFileConflictSubmodule
    <<<<<<< HEAD
    	url = ../GittyupTestHiddenFileConflictSubmodule3
    =======
    	url = ../GittyupTestHiddenFileConflictSubmodule2
    >>>>>>> master
    
  3. AHSauge commented on Jan 10, 2026

    @AHSauge
    Collaborator

    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.

  4. Murmele commented on Jan 11, 2026

    @Murmele
    OwnerAuthor

    I didn't check libgit2 if there exists an issue. Perhabs I did not document where I have seen that libgit2 does not support

  5. AHSauge commented on Jan 11, 2026

    @AHSauge
    Collaborator

    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.

  6. AHSauge commented on Jan 11, 2026

    @AHSauge
    Collaborator
  7. Murmele commented on Jan 12, 2026

    @Murmele
    OwnerAuthor

    Thanks for creating this really informative issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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