Using web interface to create branch from existing branch with identical release name leads to error 500 #8800

Closed
opened 2025-11-02 08:18:56 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @99rgosse on GitHub (Apr 8, 2022).

Description

Hello !
When using the web interface to create branch, if you create from a branch that has the same name as a tag, this leads to a 500 error (tested on try.gitea.io)

Steps using the web interface:

  1. Create a branch named "testing"
  2. Create a tag (with or without release) with the "testing" branch, name it "testing"
  3. Now go back to branches and try to create a branch from "testing"
  4. Error 500 : log says : CreateNewBranch: Push: ErrMoreThanOne Error: exit status 1: error: src refspec testing matches more than one

Gitea Version

1.16.5 / 1.17 dev

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://try.gitea.io/99rgosse/gitlab_to_gitea/src/branch/master/log

Screenshots

image

Git Version

2.27

Operating System

Linux

How are you running Gitea?

From Docker 1.16.5 and also on try.gitea.io

Database

PostgreSQL

Originally created by @99rgosse on GitHub (Apr 8, 2022). ### Description Hello ! When using the web interface to create branch, if you create from a branch that has the same name as a tag, this leads to a 500 error (tested on try.gitea.io) Steps using the web interface: 1. Create a branch named "testing" 2. Create a tag (with or without release) with the "testing" branch, name it "testing" 3. Now go back to branches and try to create a branch from "testing" 4. Error 500 : log says : CreateNewBranch: Push: ErrMoreThanOne Error: exit status 1: error: src refspec testing matches more than one ### Gitea Version 1.16.5 / 1.17 dev ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist https://try.gitea.io/99rgosse/gitlab_to_gitea/src/branch/master/log ### Screenshots ![image](https://user-images.githubusercontent.com/61579380/162409734-bf50efe1-e551-4e35-82a1-03e00c94c48d.png) ### Git Version > 2.27 ### Operating System Linux ### How are you running Gitea? From Docker 1.16.5 and also on try.gitea.io ### Database PostgreSQL
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 08:18:56 -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#8800