1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Delete protected branch if repository gets removed (#15658) (#15676)

* Added missing error parameters.

* Delete protected branch if repository gets removed.

* Added doctor fix.
This commit is contained in:
KN4CK3R
2021-04-30 20:59:42 +02:00
committed by GitHub
parent 3bde297121
commit 54263ff123
2 changed files with 27 additions and 8 deletions

View File

@@ -1471,6 +1471,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)
}