mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
repair snapshots: use local copy of globalOptions to open repository
This commit is contained in:
parent
692f81ede8
commit
b93459cbb0
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user