Merge pull request #1 from naiba/naiba-fix-4003

fix #4003
This commit is contained in:
奶爸 2018-05-21 20:01:46 +08:00 committed by GitHub
commit aaffd3242c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1824,6 +1824,8 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&PullRequest{BaseRepoID: repoID},
&RepoUnit{RepoID: repoID},
&RepoRedirect{RedirectRepoID: repoID},
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}