Delete repo redirects on repo deletion (#1776)

tokarchuk/v1.17
Ethan Koenig 8 years ago committed by Bo-Yi Wu
parent cc2071c3fd
commit bdc90aeaee
  1. 1
      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)
}

Loading…
Cancel
Save