Skip to content

Cannot remove upstream repo #12958

Closed
Closed

Description

@JamesCatt

Describe the bug

After adding a repo (from Github Enterprise) that has been forked from an upstream repo, it seems to be not possible to remove the upstream from Github desktop (the upstream repo has since been deleted). There's no option for setting it in the menus, and removing it via command line (git remote rm upstream) only works until Github Desktop is restarted—then the upstream is re-added.

This results in fetch attempts failing because the upstream repo is unreachable—I have to open a command prompt and fetch manually or remove the upstream after every restart.

Version & OS

Github Desktop v2.9.3 x64
MacOS 11.4

Steps to reproduce the behavior

  1. Add a repo that has been forked from an upstream
  2. Delete the upstream
  3. Attempt to fetch with Github Desktop (fails)
  4. Remove the upstream via command line (git remote rm upstream), fetch now works
  5. Restart Github Desktop

Expected behavior

Github Desktop does not re-add the removed upstream repo when restarting, and/or should provide the ability to edit/remove it in the Repository Settings menu (it only displays origin, not upstream).

Actual behavior

Github Desktop re-adds the upstream repo after every restart, and has no menu/settings options for removing it.

Screenshots

image
image

Logs

image

Activity

  1. steveward commented on Sep 14, 2021

    @steveward
    Contributor

    Thanks for the report @JamesCatt. This is being tracked in #3715, I'll bump up that issue with a reference to this.

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