Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Do not assume path of local config file #1488

@eggyal

Description

@eggyal

create-pull-request currently assumes that the local config can be found in ./.git/config:

this.gitConfigPath = path.join(
this.git.getWorkingDirectory(),
'.git',
'config'
)

However this might not always be true. In my case, I am in a bare repository, so the config file is actually at ./config. Perhaps the git-dir should be identified with a call to git rev-parse --git-dir or the local config file itself identified with something like EDITOR=echo git config --local --edit?

Failed workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions