0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 09:14:15 +01:00

Delete repo redirects on repo deletion (#1776)

This commit is contained in:
Ethan Koenig 2017-05-23 04:00:10 -04:00 committed by Bo-Yi Wu
parent cc2071c3fd
commit bdc90aeaee

View file

@ -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)
}