mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
models/repo: delete protect branch options when delete repository
This commit is contained in:
@@ -1401,6 +1401,8 @@ func DeleteRepository(uid, repoID int64) error {
|
||||
&Release{RepoID: repoID},
|
||||
&Collaboration{RepoID: repoID},
|
||||
&PullRequest{BaseRepoID: repoID},
|
||||
&ProtectBranch{RepoID: repoID},
|
||||
&ProtectBranchWhitelist{RepoID: repoID},
|
||||
); err != nil {
|
||||
return fmt.Errorf("deleteBeans: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user