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.

updated default branch isn't shown in branch list until after restart

See original GitHub issue

Description

If the default branch is changed on the GitHub or GitHub Enterprise server, this is refreshed in the local IndexedDB but not displayed until a restart.

Version

What version of GitHub Desktop are you running? This is displayed under the About GitHub Desktop menu item. If you are running from source, include the commit by running git rev-parse HEAD from your local repository.

GitHub Desktop version: 1.5.1

OS version: macOS Sierra 10.12.4

Steps to Reproduce

  1. Create a new repository, make a commit, publish to GitHub
  2. Create a new branch, named second-branch
  3. Publish the branch to the server
  4. Visit the repository’s branches settings page: https://github.com/{account}/{repository}/settings/branches
  5. In the branch selector page, select the branch second-branch and press Update.
  6. Switch back to the application and switch between repositories to force a refresh
  7. Open the branch list

Expected behaviour: Default branch is listed as second-branch

Actual behaviour: Default branch is still master

Reproduces how often: it reproduces despite switching or performing a fetch until the app is restarted.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Robjamcommented, Jul 20, 2019

Just ran into this, removing the repository and adding as an existing repository seems to update the default repository.

2reactions
taotiencommented, Mar 28, 2019

This still happens on 1.6.5. Default branch doesn’t update even with a restart of the app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git branch is not showing all the branches - Stack Overflow
Execute git branch -av to show all remote and local branches.
Read more >
Default branch - GitLab Docs
Update the default branch name in your repository ; Sign in to GitLab with at least the Maintainer role and follow the instructions...
Read more >
Manage Git branches | PhpStorm Documentation - JetBrains
The main branch is marked as a favorite by default. Favorite branches are always ... The new branch will start from the current...
Read more >
Git Branch | Atlassian Git Tutorial
This document is an in-depth review of the git branch command and a discussion of the overall Git branching model.
Read more >
Branch Management - Git SCM
Branches on this list without the * in front of them are generally fine to ... The options described above, --merged and --no-merged...
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