Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
99rgosse opened this issue Apr 8, 2022 · 0 comments · Fixed by #19557
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Milestone

Comments

@99rgosse
Copy link
Contributor

99rgosse commented 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

@wxiaoguang wxiaoguang added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Apr 8, 2022
@wxiaoguang wxiaoguang added this to the 1.17.0 milestone Apr 8, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Projects
None yet
2 participants