question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error reported when fetching origin/upstream that no longer exists

See original GitHub issue

Description

Clicking “Fetch origin” on a branch of a repo which was forked from a now deleted repo yields an error.

Version

GitHub Desktop version: 1.0.12-beta0

OS version: macOS 10.13.2

Steps to Reproduce

  1. Switch to the repo
  2. Select the master branch
  3. Click on “Fetch origin”

screen shot 2018-01-02 at 1 08 12 pm

Expected behavior: The current version of the repo gets pulled

Actual behavior: An error is generated

Reproduces how often: 100%

Logs

2017-07-31.desktop.production.log

Additional Information

From the console log of GitHub Desktop app (private information replace by '*'s). Note that the git URL in the error message is for the repo that my repo was forked from and no longer exists:

git -c credential.helper= fetch --progress --prune upstream exited with an unexpected code: 128. remote: Repository not found. fatal: repository ‘https://github.com/********/*****************.git/’ not found

(The error was parsed as 8: The repository does not seem to exist anymore. You may not have access, or it may have been deleted or renamed.)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesCattcommented, Sep 15, 2021

Switching this over to bug because it looks like Desktop might be meddling in the process by re-adding the upstream repository.

@shiftkey I think that’s really the big issue here. Having the upstream be inaccessible for whatever reason is a bit of an edge case, and can easily be worked around by removing it via command line—except that Desktop keeps re-adding it.

In my case I ran into this because the upstream repo was actually deleted and now I have to go through this workaround every time I launch Desktop.

1reaction
Elderrycommented, Oct 13, 2018
  1. In Github Desktop, choose a repo whose fork parent no longer exists.
  2. Click Fetch origin, then an error message pops, claim that The repository does not seem to exist anymore.
  3. Close the message, open command line in this repo. (Ctrl + `)
  4. Input git remote remove upstream
  5. Click Fetch origin again, this time it succeeded.
  6. Close Github Desktop, then open.
  7. Click Fetch origin the 3rd time, this time the error message pops again.

@shiftkey Hope this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Git's "fatal: no upstream branch" error quickly example
Git's 'no upstream branch' error can easily be fixed by setting the upstream branch to origin.
Read more >
how to address Git error "the requested upstream branch ...
This command fails with the following error message: error: the requested upstream branch 'upstream/master' does not exist hint: hint: If you ...
Read more >
Remote Origin Already Exists Error: How To Fix It | CloudBees
1. Remove the Existing Remote · Create a new repository online using GitHub or GitLab. · Go to your local repository and remove...
Read more >
How to fix 'fatal: remote origin already exists' Git error - Komodor
You are not always required to remove the origin handler from remote . An alternative way to solve fatal: remote origin already exists...
Read more >
git pull from remote but no such ref was fetched?
It's possible that someone else on your team simply merged your branch and deleted it (commonly done after merging). You can make the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found