use global context for check, debug, dump, find, forget, init, key,

list, mount, tag, unlock commands

gh-1434
This commit is contained in:
George Armhold
2017-12-06 07:02:55 -05:00
parent 366622f09a
commit 1695c8ed55
13 changed files with 34 additions and 41 deletions
+1 -1
View File
@@ -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)
}