From 48ce135cc9d54d1c5cf876411453414a53183968 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 3 Feb 2020 16:47:04 +0800 Subject: Move PushUpdateAddDeleteTags to repository module from models (#10106) * Move PushUpdateAddDeleteTags to repository module from models * Fix deadlock on sqlite --- modules/repofiles/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/repofiles/update.go') diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go index c0f669d687..20b83655f5 100644 --- a/modules/repofiles/update.go +++ b/modules/repofiles/update.go @@ -732,7 +732,7 @@ func createCommitRepoActions(repo *models.Repository, gitRepo *git.Repository, o Commits: commits, }) } - if err := models.PushUpdateAddDeleteTags(repo, gitRepo, addTags, delTags); err != nil { + if err := repo_module.PushUpdateAddDeleteTags(repo, gitRepo, addTags, delTags); err != nil { return nil, fmt.Errorf("PushUpdateAddDeleteTags: %v", err) } return actions, nil -- cgit v1.2.3