Skip to content

Error 500 when recreating a deleted branch #6490

@ngourdon

Description

@ngourdon
  • Gitea version (or commit ref): 1.4.0 (reproducible on https://try.gitea.io)
  • Git version: 2.19.1
  • Operating system: SLES 12
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I cannot recreate a deleted branch with the same name in Gitea.
I get error page 500.

  1. Create a branch from Gitea.
  2. Delete the branch from Gitea.
  3. Re-create the branch from Gitea.

Log :
2019/04/02 14:50:38 [...uters/repo/branch.go:235 CreateBranch()] [E] CreateNewBranch: CreateNewBranch: git checkout -b 2.0 1.0: exit status 128 - fatal: A branch named '2.0' already exists.

It seems gitea keeps a cache of the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions