deleted branch still listed on the Branches page #210263
Replies: 2 comments 4 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Before you start blaming server-side bugs, I'd try a hard refresh and a private window or a different browser to rule out the client side. If the ghost entry is visible everywhere, then it's the backend. The usual fix is to push a branch with the same name pointing at any commit, and then delete it from the Branches page. That re-creates the entry and deletes it and often causes the listing to refresh itself. It’s free so it’s worth a whirl. First check that there is no branch protection rule or auto-delete setting in the way. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
the Branches page of a private repo still lists a branch that no longer exists. it shows under both "Your branches" and "Active branches", last updated 2 weeks ago, with no PR linked
its PR was merged and the branch was deleted. the API agrees it is gone:
GET /repos/{owner}/{repo}/branches/{branch} returns 404 Branch not found
GET /repos/{owner}/{repo}/branches returns only the default branch
DELETE /repos/{owner}/{repo}/git/refs/heads/{branch} returns 422 Reference does not exist
so it looks like a stale cache on the Branches overview. git ls-remote does not show it either
expected: the deleted branch is not listed
All reactions