From 4f5dbc4d0083048e7a7229934e178029ff6dfe24 Mon Sep 17 00:00:00 2001 From: guillep2k Date: Sun, 4 Aug 2019 04:00:03 -0300 Subject: [PATCH] Backport: fix repo_index_status lingering when deleting a repository (#7738) --- models/repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/repo.go b/models/repo.go index 59c7559423..10105d3071 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1791,6 +1791,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error { &HookTask{RepoID: repoID}, &Notification{RepoID: repoID}, &CommitStatus{RepoID: repoID}, + &RepoIndexerStatus{RepoID: repoID}, ); err != nil { return fmt.Errorf("deleteBeans: %v", err) }