Skip to content

Commit

Permalink
Merge pull request #4571 from michaelkuhn/init-repo-file
Browse files Browse the repository at this point in the history
Fix repository not being printed when using repository file
  • Loading branch information
MichaelEischer committed Dec 23, 2023
2 parents 97b8629 + fd2fb23 commit 356b7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/restic/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func runInit(ctx context.Context, opts InitOptions, gopts GlobalOptions, args []
return err
}

repo, err := ReadRepo(gopts)
gopts.Repo, err = ReadRepo(gopts)
if err != nil {
return err
}
Expand All @@ -87,7 +87,7 @@ func runInit(ctx context.Context, opts InitOptions, gopts GlobalOptions, args []
return err
}

be, err := create(ctx, repo, gopts, gopts.extended)
be, err := create(ctx, gopts.Repo, gopts, gopts.extended)
if err != nil {
return errors.Fatalf("create repository at %s failed: %v\n", location.StripPassword(gopts.backends, gopts.Repo), err)
}
Expand Down

0 comments on commit 356b7aa

Please sign in to comment.