Skip to content

Suggest updating config if upstream remote not found #209

@gibfahn

Description

@gibfahn

Currently if you have an upstream remote not called upstream, and you choose to try to update from the remote branch, then git-node just errors out.

It should be possible to detect that the specified remote isn't defined in this directory, have the user choose their upstream name, and then run ncu-config set upstream <chosen name> for them before continuing.

? Do you want to try reset the branch to upstream/master? [Y/n] 
⠋ Bringing upstream/master up to date...fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThings that enhances functionality, provided by node-core-utils

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions