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.

Desktop cannot open to a specific branch from a repo page using "Open in Desktop" from GitHub.com

See original GitHub issue

Describe the bug

I want to open this tag as a branch in GitHub Desktop. https://github.com/JMRI/JMRI/tree/v4.23.2

The web site has a green button “Code” which opens a dropdown menu with the menu item “Open with GitHub Desktop”. I click on that and I get a question if I want to open GitHub Desktop and I say OK. GitHub Desktop opens, but nothing happens. The branch is not opened in GitHub Desktop.

Note that this works with Pull Requests. On PRs, there is a white button “Open with” which opens a dropdown menu with the option “Open in Desktop”. This works fine.

Version & OS

GitHub Desktop 2.6.6. I have checked for updates and GitHub Desktop tells that I have the latest version.

Windows 8.1. Firefox and Brave (chromium based browser)

Steps to reproduce the behavior

  1. Go to https://github.com/JMRI/JMRI/tree/v4.23.2
  2. Click on the green button “Code”.
  3. Select “Open with GitHub Desktop”.
  4. Tell the browser to open GitHub Desktop.
  5. GitHub Desktop opens.
  6. Nothing happens. The branch is not opened.

Expected behavior

GitHub Desktop should create a new branch for this tag.

git checkout -b newbranch v1.0

Actual behavior

Nothing happens. GitHub Desktop opens, but nothing happens.

Note that this works fine for Pull Requests but not for tags.

Logs

2021-03-16T09:57:11.157Z - info: [ui] execPath: 'C:\Users\daniel\AppData\Local\GitHubDesktop\app-2.6.6\GitHubDesktop.exe'
2021-03-16T09:57:45.436Z - info: [main] Received possible protocol arguments: 4
2021-03-16T09:57:45.436Z - info: [main] Processing protocol url
2021-03-16T09:57:45.537Z - info: [ui] [BranchPruner] Last prune took place in 8 hours - skipping

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
tidy-devcommented, May 7, 2021

@danielb987 As long as that user has pushed their branch to the repository and you have fetched the latest in your GitHub Desktop that users branch should appear in the branch dropdown menu and can be filtered down to.

For example, my teammate created this branch create-branch-from-commit and I can tell it is not local to my machine because it is prefaced with origin/ my remote signifier. image

Once you have checked out that branch, you can open the create branch dialog either from the app level branch menu or by hitting 'New Branch` next to the filter in the branch dropdown menu. In that create branch dialog menu, you will have the option to branch from your default branch or your currently checked out branch (your other user’s branch)

image

1reaction
billygriffincommented, Jun 1, 2021

Since we’ve shipped the branch creation from previous commits to beta and you’re able to open remote branches in Desktop and @danielb987 said his use case is satisfied with the earlier one, I’m going to close this. Obviously if we hear strong desire for this from the dotcom side we can revisit, but in the interest of prioritizing just want to make sure we’re trying to solve the most important problems. Thanks y’all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing branches - GitHub Docs
For more information, see "Configuring basic settings." In GitHub Desktop, click Current Branch.
Read more >
"Open in GitHub Desktop" does not checkout requested branch
Checkout the main branch of any local repo; Navigate to a PR or non- main branch on the GitHub.com repo; Click the "Open...
Read more >
Cloning a repository from GitHub to GitHub Desktop
On GitHub.com, navigate to the main page of the repository. Above the list of files, click Code. Click Open with GitHub Desktop to...
Read more >
Getting started with GitHub Desktop - GitHub Docs
You can use GitHub Desktop to create a branch of a project. Branches isolate your development work from other branches in the repository,...
Read more >
Creating and deleting branches within your repository
You can create a branch in different ways on GitHub. Note: You can only create a branch in a repository to which you...
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