mirror of
https://github.com/restic/restic.git
synced 2026-10-14 05:57:12 +00:00
repair snapshots: use local copy of globalOptions to open repository
This commit is contained in:
1 parent
692f81ede8
commit
b93459cbb0
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user