error reported when fetching origin/upstream that no longer exists
See original GitHub issueDescription
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
- Switch to the repo
- Select the master branch
- Click on “Fetch origin”
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:
- Created 6 years ago
- Comments:14 (8 by maintainers)
Top GitHub Comments
@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.
Fetch origin
, then an error message pops, claim thatThe repository does not seem to exist anymore
.git remote remove upstream
Fetch origin
again, this time it succeeded.Fetch origin
the 3rd time, this time the error message pops again.@shiftkey Hope this helps.