mirror of
https://github.com/go-gitea/gitea
synced 2025-02-12 10:07:02 +01:00
Backport #30674 & #30679 by @lunny When visiting a pull request files which head repository has been deleted, it will panic because headrepo is nil. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>