updated default branch isn't shown in branch list until after restart
See original GitHub issueDescription
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
- Create a new repository, make a commit, publish to GitHub
- Create a new branch, named
second-branch
- Publish the branch to the server
- Visit the repository’s branches settings page:
https://github.com/{account}/{repository}/settings/branches
- In the branch selector page, select the branch
second-branch
and pressUpdate
. - Switch back to the application and switch between repositories to force a refresh
- 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:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just ran into this, removing the repository and adding as an existing repository seems to update the default repository.
This still happens on 1.6.5. Default branch doesn’t update even with a restart of the app.