Skip to content

Running Fetch on a forked repo throws an error #17126

Closed

Description

@brandonh6k

The problem

If I do a fetch against a forked repo where I don't have access (at all) to the upstream parent, I get an error about the repo not existing.

GitHubDesktopError

That's even with my Fork Behavior setting set to the child repo (the My own purposes setting).

GitHubDesktopRepoForkBehavior

GitHub Desktop seems to still do a fetch when I click the button, but still pops up with the error. Doing a pull after fetch tells me that there are available commits works just fine with no errors.

Release version

3.2.7

Operating system

Windows 10 (x64)

Steps to reproduce the behavior

  1. Create a fork from a private repo, then revoke your permissions on that parent repo.
  2. Clone the forked repo
  3. Click Fetch in GH Desktop

Log files

No response

Screenshots

No response

Additional context

No response

Activity

  1. steveward commented on Jul 27, 2023

    @steveward
    Contributor

    Thanks for the report @intrado-bfhunt. This is being tracked in #3715, and unfortunately the only workaround right now is to delete the upstream remote from the command line. GitHub Desktop will add the remote back once the app is restarted.

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