Browse Source

Delete repo redirects on repo deletion (#1776)

for-closed-social
Ethan Koenig 7 years ago
committed by Bo-Yi Wu
parent
commit
bdc90aeaee
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/repo.go

+ 1
- 0
models/repo.go View File

@ -1650,6 +1650,7 @@ func DeleteRepository(uid, repoID int64) error {
&Collaboration{RepoID: repoID}, &Collaboration{RepoID: repoID},
&PullRequest{BaseRepoID: repoID}, &PullRequest{BaseRepoID: repoID},
&RepoUnit{RepoID: repoID}, &RepoUnit{RepoID: repoID},
&RepoRedirect{RedirectRepoID: repoID},
); err != nil { ); err != nil {
return fmt.Errorf("deleteBeans: %v", err) return fmt.Errorf("deleteBeans: %v", err)
} }

Loading…
Cancel
Save