summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/migrations/gitea.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go
index b15aed5f4b..3320a8cb6d 100644
--- a/modules/migrations/gitea.go
+++ b/modules/migrations/gitea.go
@@ -383,7 +383,7 @@ func (g *GiteaLocalUploader) newPullRequest(pr *base.PullRequest) (*models.PullR
}
var head = "unknown repository"
- if pr.IsForkPullRequest() {
+ if pr.IsForkPullRequest() && pr.State != "closed" {
if pr.Head.OwnerName != "" {
remote := pr.Head.OwnerName
_, ok := g.prHeadCache[remote]