Skip to content

Repository UI is unusable if there are no branches #34256

Open
@TheFox0x7

Description

@TheFox0x7

Description

If someone pushes only a tag to a repository the UI is blank stating "This repository doesn’t have any branches".
I'm not sure what the proper behavior should be, but I don't think that is the correct one.

https://demo.gitea.com/TheFox0x7/tag-only

Steps to reproduce:

  1. Setup a new repository on gitea
  2. add the remote to git
  3. run git push origin {tag}

Screenshots

Image

Gitea Version

1.24.0+dev-599-g39adb060f0

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Mozilla Firefox 137.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Giteatopic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions