summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/admin.go2
-rw-r--r--cmd/doctor.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 3c7f7c8a7c..3042df8bb7 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -669,7 +669,7 @@ func runRepoSyncReleases(_ *cli.Context) error {
log.Trace("Processing next %d repos of %d", len(repos), count)
for _, repo := range repos {
log.Trace("Synchronizing repo %s with path %s", repo.FullName(), repo.RepoPath())
- gitRepo, err := git.OpenRepository(repo.RepoPath())
+ gitRepo, err := git.OpenRepositoryCtx(ctx, repo.RepoPath())
if err != nil {
log.Warn("OpenRepository: %v", err)
continue
diff --git a/cmd/doctor.go b/cmd/doctor.go
index 54c18b83dc..35cc305f4c 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -5,7 +5,6 @@
package cmd
import (
- "context"
"fmt"
golog "log"
"os"
@@ -116,7 +115,7 @@ func runRecreateTable(ctx *cli.Context) error {
}
recreateTables := migrations.RecreateTables(beans...)
- return db.InitEngineWithMigration(context.Background(), func(x *xorm.Engine) error {
+ return db.InitEngineWithMigration(stdCtx, func(x *xorm.Engine) error {
if err := migrations.EnsureUpToDate(x); err != nil {
return err
}