mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-17 07:38:15 +00:00
Fix context usages (#35348)
This commit is contained in:
@@ -90,7 +90,7 @@ func runDumpRepository(ctx context.Context, cmd *cli.Command) error {
|
||||
}
|
||||
|
||||
// migrations.GiteaLocalUploader depends on git module
|
||||
if err := git.InitSimple(context.Background()); err != nil {
|
||||
if err := git.InitSimple(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ func runDumpRepository(ctx context.Context, cmd *cli.Command) error {
|
||||
}
|
||||
|
||||
if err := migrations.DumpRepository(
|
||||
context.Background(),
|
||||
ctx,
|
||||
repoDir,
|
||||
cmd.String("owner_name"),
|
||||
opts,
|
||||
|
Reference in New Issue
Block a user