summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-04-30 00:48:52 +0200
committerGitHub <noreply@github.com>2021-04-30 00:48:52 +0200
commit2e8516534974ad23ca417a64edfb90d157989dab (patch)
tree10df4b03c9fd16fc7064f99599315843aa4e96c4 /models
parentRemove random password in Dockerfiles (#15362) (diff)
downloadforgejo-2e8516534974ad23ca417a64edfb90d157989dab.tar.xz
forgejo-2e8516534974ad23ca417a64edfb90d157989dab.zip
Delete protected branch if repository gets removed (#15658)
* Added missing error parameters. * Delete protected branch if repository gets removed. * Added doctor fix.
Diffstat (limited to 'models')
-rw-r--r--models/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index cea874769d..0a0f725f09 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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)
}