From b93459cbb09afea6c32ce37d7181f2c8762e1657 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 8 May 2023 18:38:55 +0200 Subject: [PATCH] repair snapshots: use local copy of globalOptions to open repository --- cmd/restic/cmd_repair_snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_repair_snapshots.go b/cmd/restic/cmd_repair_snapshots.go index 5e9ec4130..03736795c 100644 --- a/cmd/restic/cmd_repair_snapshots.go +++ b/cmd/restic/cmd_repair_snapshots.go @@ -67,7 +67,7 @@ func init() { } 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 { return err }