Skip to content

fetchAll() fails unless a default signature is available #431

@alexmcarthur

Description

@alexmcarthur

version 0.2.7

fetchAll() fails with [Error: Config value 'user.name' was not found] unless git global config 'user.name' is set to a non-empty string. If the string is empty the error is [Error: Failed to parse signature - Signature cannot have an empty name]. The fetchAll() function does not take a signature parameter, and ends up calling repo.defaultSignature().

To reproduce:
$ git config --global --unset user.name
or
$ git config --global user.name ''

Setting the system or local user.name makes no difference.
As far as I can tell there is no way to set the default user name other than via the command line.

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