diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-21 17:11:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 17:11:48 +0800 |
commit | 0add627182388ac63fd04b94cdf912fb87fd0326 (patch) | |
tree | 17144fd985993ef4739874b3c304d0a10f8ee84f /services/repository | |
parent | ab09296d374aedd1eec813ca007810a76e6625e9 (diff) | |
download | gitea-0add627182388ac63fd04b94cdf912fb87fd0326.tar.gz gitea-0add627182388ac63fd04b94cdf912fb87fd0326.zip |
Fix close issue but time watcher still running (#17643)
* Fix close issue but time watcher still running
* refactor stopwatch codes
* Fix test
* Fix test
* Fix typo
* Fix test
Diffstat (limited to 'services/repository')
-rw-r--r-- | services/repository/push.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/repository/push.go b/services/repository/push.go index a98cfb1758..97554c6490 100644 --- a/services/repository/push.go +++ b/services/repository/push.go @@ -19,10 +19,10 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/notification" "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/repofiles" repo_module "code.gitea.io/gitea/modules/repository" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" + issue_service "code.gitea.io/gitea/services/issue" pull_service "code.gitea.io/gitea/services/pull" ) @@ -198,7 +198,7 @@ func pushUpdates(optsList []*repo_module.PushUpdateOptions) error { commits := repo_module.GitToPushCommits(l) commits.HeadCommit = repo_module.CommitToPushCommit(newCommit) - if err := repofiles.UpdateIssuesCommit(pusher, repo, commits.Commits, refName); err != nil { + if err := issue_service.UpdateIssuesCommit(pusher, repo, commits.Commits, refName); err != nil { log.Error("updateIssuesCommit: %v", err) } |