Skip to content

FR: jj should play nice with gh cli - prioritize fetching from upstream when set over origin #8574

@joshka

Description

@joshka

Is your feature request related to a problem? Please describe.
In git, if an upstream repo is set, it's prioritized over origin when fetching.
When using the gh cli tool, letting the tool fork an origin repo for you renames origin to upstream and adds a new origin.

Describe the solution you'd like
Default fetch priority should be upstream first, origin second

Describe alternatives you've considered
If we don't do this, then users have to dig into documentation to work out how to set their local repos up for working with these tools well. This behavior is divergent from git's behavior without any obvious affordances for discovery. The failure mode here is that jj git fetch no longer does anything except report "nothing changed"

Additional context
Add any other context or screenshots about the feature request here.

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