summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index a50aa2dc27..c806e2f74d 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1650,6 +1650,7 @@ func DeleteRepository(uid, repoID int64) error {
&Collaboration{RepoID: repoID},
&PullRequest{BaseRepoID: repoID},
&RepoUnit{RepoID: repoID},
+ &RepoRedirect{RedirectRepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}