Closed
Description
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:
- Create a branch named "testing"
- Create a tag (with or without release) with the "testing" branch, name it "testing"
- Now go back to branches and try to create a branch from "testing"
- 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
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