Skip to content

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

Closed
@99rgosse

Description

@99rgosse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions