Skip to content

PR Error 500 with branch and tag sharing the same name if the tag create by git tag -a #35470

@Aostas

Description

@Aostas

Description

almost same as #15592
If the tag is created using git tag tagname, there will be no problem. It was fixed in #16040.
If the tag is created using git tag -a tagname -m tagmessage, a 500 error will occur.

Gitea demo: https://demo.gitea.com/Aostas/test/compare/123...12

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/Aostas/9fc81a4e89a2ba5ecaa4e9576ac78e84

Screenshots

Image Image

Git Version

2.30.2

Operating System

Debian 11

How are you running Gitea?

downloaded from dl.gitea.com
running in pve lxc
run from systemd

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions