summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-02-02 22:03:45 -0600
committertechknowlogick <matti@mdranta.net>2019-02-02 23:03:45 -0500
commitf81c6cc2a90fa4d92e0fc00834ddee66b37f44b7 (patch)
tree3b650299e7ab0f126528bfb9c8197f64055849cb /models
parentecefa9e724460deb70b97dd7c52fc8f4db94be93 (diff)
downloadgitea-f81c6cc2a90fa4d92e0fc00834ddee66b37f44b7.tar.gz
gitea-f81c6cc2a90fa4d92e0fc00834ddee66b37f44b7.zip
Remove all CommitStatus when a repo is deleted (#5940)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
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 08908c8b06..894698a7c0 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1787,6 +1787,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
&Notification{RepoID: repoID},
+ &CommitStatus{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}