Skip to content
This repository was archived by the owner on Dec 19, 2020. It is now read-only.
This repository was archived by the owner on Dec 19, 2020. It is now read-only.

Feature request: more helpful error message if there is no remote "origin" #202

Description

@mwachs5

If you run "wit update" in a workspace where (due to development on a package) you have no remote called "origin", you get a fatal error:

wit.gitrepo.GitError: Command [git remote get-url origin] in [...] exited with non-zero exit status [128]
stdout: []
stderr: [fatal: No such remote 'origin']

If you have something called "origin" and somethign called say "private" and your workspace wants to be using the remote you are calling "private" as "origin", the error message is helpful and basically tells you to rename "private" to "origin". Would request a similar helpful error message. And, apparently wit update requires the packages' remotes to be "origin" is probably worth documenting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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