Skip to content

Commit

Permalink
models/repo: delete protect branch options when delete repository
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Feb 23, 2017
1 parent 6072e9a commit cd15a17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/repo.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit cd15a17

Please sign in to comment.