diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-04-30 00:48:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 00:48:52 +0200 |
commit | 2e8516534974ad23ca417a64edfb90d157989dab (patch) | |
tree | 10df4b03c9fd16fc7064f99599315843aa4e96c4 /models | |
parent | Remove random password in Dockerfiles (#15362) (diff) | |
download | forgejo-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.go | 1 |
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) } |