summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-06-07 00:44:58 +0100
committerGitHub <noreply@github.com>2021-06-06 19:44:58 -0400
commit51775f65bc933843199320b040186703a2bb9f51 (patch)
tree103463ed6f5ab76245c3dcbaa46773b3bf358e6b /services
parentb6762e23060972f0ad35aeab48850064687ea400 (diff)
downloadgitea-51775f65bc933843199320b040186703a2bb9f51.tar.gz
gitea-51775f65bc933843199320b040186703a2bb9f51.zip
Make commit info cancelable (#16032)
* Make modules/context.Context a context.Context Signed-off-by: Andrew Thornton <art27@cantab.net> * Simplify context calls Signed-off-by: Andrew Thornton <art27@cantab.net> * Set the base context for requests to the HammerContext Signed-off-by: Andrew Thornton <art27@cantab.net> * pass context into get-last-commit Signed-off-by: Andrew Thornton <art27@cantab.net> * Make commit_info cancellable Signed-off-by: Andrew Thornton <art27@cantab.net> * use context as context Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'services')
-rw-r--r--services/repository/push.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/push.go b/services/repository/push.go
index bed5c575fe..f031073b2e 100644
--- a/services/repository/push.go
+++ b/services/repository/push.go
@@ -208,7 +208,7 @@ func pushUpdates(optsList []*repo_module.PushUpdateOptions) error {
}
// Cache for big repository
- if err := repo_module.CacheRef(repo, gitRepo, opts.RefFullName); err != nil {
+ if err := repo_module.CacheRef(graceful.GetManager().HammerContext(), repo, gitRepo, opts.RefFullName); err != nil {
log.Error("repo_module.CacheRef %s/%s failed: %v", repo.ID, branch, err)
}
} else {