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.

Remove dependency on origin remote #203

@richardxia

Description

It is unclear to me why we are relying on the existence of a remote named origin. I suggest that we do not assume that a remote named origin is always present or that it has any special meaning.

I also suggest that we mimic Git's own treatment of origin, which is non-special. For example, the ability of git checkout foo to automatically perform git checkout -b foo origin/foo is actually not specific to origin, but it actually searches all remotes and only does the expansion when branch name is unique: https://git-scm.com/docs/git-checkout#_description

We should make sure that we print the appropriate error messages for any commands that are dependent on having at least one remote.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions