Browse Source

models/repo: delete protect branch options when delete repository

pull/4185/head
Unknwon 8 years ago
parent
commit
cd15a17970
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      models/repo.go

2
models/repo.go

@ -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)
}

Loading…
Cancel
Save