mirror of
https://github.com/restic/restic.git
synced 2026-09-29 15:30:29 +00:00
use global context for check, debug, dump, find, forget, init, key,
list, mount, tag, unlock commands gh-1434
This commit is contained in:
@@ -162,7 +162,7 @@ func runDump(opts DumpOptions, gopts GlobalOptions, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
sn, err := restic.LoadSnapshot(context.TODO(), repo, id)
|
||||
sn, err := restic.LoadSnapshot(gopts.ctx, repo, id)
|
||||
if err != nil {
|
||||
Exitf(2, "loading snapshot %q failed: %v", snapshotIDString, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user