Imported repository with no commits on default branch shows up empty in web GUI #9939

Open
opened 2025-11-02 08:53:35 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @adamel on GitHub (Dec 6, 2022).

Description

For hysterical reasons one of our old repositories contained no commits at all on the default branch, but several other branches with commits and annotated tags. When importing this into Gitea the web interface showed the repository as completely empty.

After creating and pushing some commits to the default branch all the branches became visible in the GUI, but still none of the old tags are visible in the GUI under "Tags", but they are visible in the branches/tags filter selectbox on the repo. Newly pushed tags shows up fine in the GUI.

Reporting this so this bug can be fixed, but also to ask if there is a way to sync the list of tags in SQL from the on-disk repository?

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.31.1

Operating System

AlmaLinux 9.1

How are you running Gitea?

Binary download run from systemd.

Database

MySQL

Originally created by @adamel on GitHub (Dec 6, 2022). ### Description For hysterical reasons one of our old repositories contained no commits at all on the default branch, but several other branches with commits and annotated tags. When importing this into Gitea the web interface showed the repository as completely empty. After creating and pushing some commits to the default branch all the branches became visible in the GUI, but still none of the old tags are visible in the GUI under "Tags", but they are visible in the branches/tags filter selectbox on the repo. Newly pushed tags shows up fine in the GUI. Reporting this so this bug can be fixed, but also to ask if there is a way to sync the list of tags in SQL from the on-disk repository? ### Gitea Version 1.17.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.31.1 ### Operating System AlmaLinux 9.1 ### How are you running Gitea? Binary download run from systemd. ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 08:53:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9939