Skip to content

Commit bdc90ae

Browse files
ethantkoenigappleboy
authored andcommitted
Delete repo redirects on repo deletion (#1776)
1 parent cc2071c commit bdc90ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,7 @@ func DeleteRepository(uid, repoID int64) error {
16501650
&Collaboration{RepoID: repoID},
16511651
&PullRequest{BaseRepoID: repoID},
16521652
&RepoUnit{RepoID: repoID},
1653+
&RepoRedirect{RedirectRepoID: repoID},
16531654
); err != nil {
16541655
return fmt.Errorf("deleteBeans: %v", err)
16551656
}

0 commit comments

Comments
 (0)