Skip to content

Error: no config entry for the given key: missing key user.name #1475

@halostatue

Description

@halostatue

This is similar to #1139 in that the core issue is that I have configured git to support multiple identities (I only have one on my personal laptop, but multiple on my work laptop), but I have done so through includeIf blocks.

When I try to do git bug bridge new (or git bug user new) in a local repo, I get the error:

Error: no config entry for the given key: missing key user.name

git bug is correct that if it's reading my configuration without awareness of includeIf, I do not have anything set in [user]. However, running git config --get user.name returns the expected value.

I've already fixed an issue similar to #1474, but it appears that whatever git-config parsing is going on is (a) excessively strict and (b) fundamentally broken compared to the native git config parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/gitRelates to git operationskind/bugRelates to an issuepriority/backlogHigher priority than priority/awaiting-more-evidence

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions