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.

"Checkout with GitHub Desktop" does nothing

See original GitHub issue

I use GitHub Desktop both at work and at home. So I create a branch and then a pull request at work Then at home I go using the browser to the URL like this: https://github.com/XXXX/xxx/pull/28511 and click the “Checkout with GitHub Desktop” and nothing happens in GitHub Desktop. absolutely nothing only the log reveals something:

2021-08-27T16:02:28.906Z - info: [main] Received possible protocol arguments: 4
2021-08-27T16:02:28.906Z - info: [main] Processing protocol url
2021-08-27T16:02:29.123Z - warn: [ui] failed fetching PR for gemal/xxx/pulls/28511
Error: Not Found
    at ct (C:\Users\Henrik Gemal\AppData\Local\GitHubDesktop\app-2.9.3-beta1\webpack:\app\src\lib\http.ts:178:11)
    at Pt.fetchPullRequest (C:\Users\Henrik Gemal\AppData\Local\GitHubDesktop\app-2.9.3-beta1\webpack:\app\src\lib\api.ts:893:7)
    at Object.fetchPullRequest (C:\Users\Henrik Gemal\AppData\Local\GitHubDesktop\app-2.9.3-beta1\webpack:\app\src\lib\stores\app-store.ts:1653:9)
    at Object.openPullRequestFromUrl (C:\Users\Henrik Gemal\AppData\Local\GitHubDesktop\app-2.9.3-beta1\webpack:\app\src\ui\dispatcher\dispatcher.ts:1672:11)
    at Object.openRepositoryFromUrl (C:\Users\Henrik Gemal\AppData\Local\GitHubDesktop\app-2.9.3-beta1\webpack:\app\src\ui\dispatcher\dispatcher.ts:1624:9)
2021-08-27T16:02:29.550Z - info: [main] Error report submitted

Using: Version 2.9.3-beta1 (x64)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevewardcommented, Sep 15, 2021

@gemal I did some testing and was able to reproduce this issue. Can you confirm if you are working in a repository that is a fork?

It looks like this specifically happens when checking out a PR that was created from a fork. We previously had a bug around this (but not specific to forks) that was addressed in https://github.com/desktop/desktop/issues/12215.

Testing steps:

2021-09-15T20:59:49.438Z - warn: [ui] failed fetching PR for mahezsh/desktop/pulls/12777
Error: Not Found
    at ct (/webpack:/app/src/lib/http.ts:178:11)
    at At.fetchPullRequest (/webpack:/app/src/lib/api.ts:893:7)
    at Object.fetchPullRequest (/webpack:/app/src/lib/stores/app-store.ts:1656:9)
    at Object.openPullRequestFromUrl (/webpack:/app/src/ui/dispatcher/dispatcher.ts:1671:11)
    at Object.openRepositoryFromUrl (/webpack:/app/src/ui/dispatcher/dispatcher.ts:1623:9)

It looks like the app is fetching from the wrong user – it should be desktop/desktop/pulls/12777 instead of mahezsh in this instance.

/cc @desktop/engineering for confirmation

0reactions
sergiou87commented, Sep 22, 2021

Maybe it was a regression introduced on the web and has been fixed already 😅

Closing for now, let us know if you find a case that doesn’t work! Thanks!! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I git checkout from GitHub Desktop? - Stack Overflow
To do git checkout mybranch on Github Desktop, you simply click on the dropdown menu on the upper left ...
Read more >
Cloning and the GitHub desktop client
The GitHub desktop client; Cloning; Cloning a GitHub Repository to Your Local Computer; Simple models for using GitHub; Work cycle; Editing and committing ......
Read more >
Checkout and switch branches - GitHub Tutorial - LinkedIn
Use git checkout to switch between repository branches. In this video, you'll learn where to find branch lists in GitHub Desktop and how...
Read more >
Bring your monorepo down to size with sparse-checkout
Do commands like git checkout or git status slow to a crawl? ... for three different platforms: Android, Desktop (using Electron), and iOS....
Read more >
GitHub Desktop Tutorial - Collaborate With GitHub From Your ...
There is also a Git Client wherein the developers can work on the repository offline on their local machines using git commands from...
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