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

Closed
opened 2025-11-02 08:52:15 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @ghost on GitHub (Nov 24, 2022).

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

Originally created by @ghost on GitHub (Nov 24, 2022). ### 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
GiteaMirror added the type/bug label 2025-11-02 08:52:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9884