From fb842759fc53f335e0f588d3543ebccb341e3bb6 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 2 Apr 2020 22:50:08 +0200 Subject: [PATCH] debug: don't load the repository index The existing commands don't need a loaded repository index which can take several minutes to load on larger repositories. --- cmd/restic/cmd_debug.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index 12c44dd19..bbba32cc3 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -141,11 +141,6 @@ func runDebugDump(gopts GlobalOptions, args []string) error { } } - err = repo.LoadIndex(gopts.ctx) - if err != nil { - return err - } - tpe := args[0] switch tpe {