File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func (c *Client) DoResticForget(ctx context.Context) error {
103103func (c * Client ) DoResticPrune (ctx context.Context ) error {
104104 c .Logger .Info ("running 'restic prune'" )
105105
106- output , err := Prune (ctx )
106+ output , err := Prune (ctx , c . Config . Global )
107107 if err != nil {
108108 return errors .WithStack (fmt .Errorf ("%s - %s" , err .Error (), output ))
109109 }
Original file line number Diff line number Diff line change @@ -346,8 +346,8 @@ func Forget(
346346}
347347
348348// Prune executes "restic prune"
349- func Prune (ctx context.Context ) ([]byte , error ) {
350- cmd := newCommand ("prune" , nil ... )
349+ func Prune (ctx context.Context , globalOpts * GlobalOptions ) ([]byte , error ) {
350+ cmd := newCommand ("prune" , cli . StructToCLI ( globalOpts ) ... )
351351
352352 return cli .Run (ctx , cmd )
353353}
You can’t perform that action at this time.
0 commit comments