Closed

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