repair snapshots: use local copy of globalOptions to open repository

This commit is contained in:
Michael Eischer 2023-05-08 18:38:55 +02:00
parent 692f81ede8
commit b93459cbb0
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func init() {
} }
func runRepairSnapshots(ctx context.Context, gopts GlobalOptions, opts RepairOptions, args []string) error { func runRepairSnapshots(ctx context.Context, gopts GlobalOptions, opts RepairOptions, args []string) error {
repo, err := OpenRepository(ctx, globalOptions) repo, err := OpenRepository(ctx, gopts)
if err != nil { if err != nil {
return err return err
} }