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

Closed
opened 2025-11-02 11:26:36 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Aostas on GitHub (Sep 12, 2025).

Description

almost same as https://github.com/go-gitea/gitea/issues/15592
If the tag is created using git tag tagname, there will be no problem. It was fixed in https://github.com/go-gitea/gitea/pull/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

Originally created by @Aostas on GitHub (Sep 12, 2025). ### Description almost same as https://github.com/go-gitea/gitea/issues/15592 If the tag is created using git tag tagname, there will be no problem. It was fixed in https://github.com/go-gitea/gitea/pull/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 <img width="1676" height="849" alt="Image" src="https://github.com/user-attachments/assets/bbef462b-ccfa-4608-bf1a-ccf0f5f98838" /> <img width="1676" height="849" alt="Image" src="https://github.com/user-attachments/assets/d32f6c55-6e09-4569-9b3a-c88a471717e7" /> ### 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
GiteaMirror added the type/bug label 2025-11-02 11:26:36 -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#14949