mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
Delete protected branch if repository gets removed (#15658)
* Added missing error parameters. * Delete protected branch if repository gets removed. * Added doctor fix.
This commit is contained in:
parent
d576126286
commit
2e85165349
2 changed files with 27 additions and 8 deletions
|
@ -1472,6 +1472,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
|
|||
&LanguageStat{RepoID: repoID},
|
||||
&Comment{RefRepoID: repoID},
|
||||
&Task{RepoID: repoID},
|
||||
&ProtectedBranch{RepoID: repoID},
|
||||
); err != nil {
|
||||
return fmt.Errorf("deleteBeans: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue