mirror of https://github.com/gogs/gogs.git
models/repo: delete protect branch options when delete repository
parent
6072e9a52c
commit
cd15a17970
|
@ -1401,6 +1401,8 @@ func DeleteRepository(uid, repoID int64) error {
|
||||||
&Release{RepoID: repoID},
|
&Release{RepoID: repoID},
|
||||||
&Collaboration{RepoID: repoID},
|
&Collaboration{RepoID: repoID},
|
||||||
&PullRequest{BaseRepoID: repoID},
|
&PullRequest{BaseRepoID: repoID},
|
||||||
|
&ProtectBranch{RepoID: repoID},
|
||||||
|
&ProtectBranchWhitelist{RepoID: repoID},
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return fmt.Errorf("deleteBeans: %v", err)
|
return fmt.Errorf("deleteBeans: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue