wrong default branch when branch delete from mirror repository #2050

Closed
opened 2025-11-02 04:22:23 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @renothing on GitHub (Jul 12, 2018).

  • Gitea version (or commit ref):1.4.3
  • Operating system:Alpine
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x] Not relevant
  • Log gist:

Description

I create a mirror repo and set a non-master branch as default branch.
when I delete this branch from original remote repository, the mirrored repo default branch info is still old info(which not exist already)

Originally created by @renothing on GitHub (Jul 12, 2018). - Gitea version (or commit ref):1.4.3 - Operating system:Alpine - Database (use `[x]`): - [ ] PostgreSQL - [x ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ x] Not relevant - Log gist: ## Description I create a mirror repo and set a non-master branch as default branch. when I delete this branch from original remote repository, the mirrored repo default branch info is still old info(which not exist already)
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:22:23 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 18, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 18, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@renothing commented on GitHub (Jan 18, 2019):

@lafriks it's unnecessarily to close labeled issues automatically.

@renothing commented on GitHub (Jan 18, 2019): @lafriks it's unnecessarily to close labeled issues automatically.
Author
Owner

@6543 commented on GitHub (Oct 8, 2021):

-> #15764

@6543 commented on GitHub (Oct 8, 2021): -> #15764
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2050