Skip to content

user.name was not found for .gitconfig with includeIf #1696

Open
@mloskot

Description

@mloskot

I use a peculiar .gitconfig with numerous includeIf directives and it works well with git and Fork and GitHub Desktop, as well as with lazygit:

$ git config --get user.name
Mateusz Łoskot
$ git config --get user.email
[email protected]

I'm also using export GPG_TTY=$(tty) and signing my commits using terminal-based passphrase prompt.

I've just tried gitui on Ubuntu 22.04 and it seems tripping over my special Git configuration, complaining with:

commit error:
git error:config value 'user.name' was not found; class=Config (7); code=NotFound (-3)

I've searched around and I found this about gitui not using git cli, #74 (comment), so I assume it does not rely on git-native processing of .gitconfig. This may explain it may be tripping over includeIf indeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions