Skip to content

Panic in RestoreBranchPost if click restore branch muiltple time in one branch #21930

Closed
@ghost

Description

Description

We know that deleted branches will retain a history for a period of time if garbage collection is not run.

If the branch has been restored, executing restore again will cause panic.

Gitea Version

1.19.0+dev

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/xin-u/b7aa208c095c833f4a0e09adbce4decb

Screenshots

No response

Git Version

main

Operating System

No response

How are you running Gitea?

build from source

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions