Skip to content

Commit

Permalink
Merge pull request #1396 from saschagrunert/accept-repositories
Browse files Browse the repository at this point in the history
Accept repositories on login/logout
  • Loading branch information
rhatdan authored Aug 2, 2021
2 parents 2135466 + 961d5da commit 788b2e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/skopeo/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (opts *loginOptions) run(args []string, stdout io.Writer) error {
defer cancel()
opts.loginOpts.Stdout = stdout
opts.loginOpts.Stdin = os.Stdin
opts.loginOpts.AcceptRepositories = true
sys := opts.global.newSystemContext()
if opts.tlsVerify.present {
sys.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!opts.tlsVerify.value)
Expand Down
1 change: 1 addition & 0 deletions cmd/skopeo/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func logoutCmd(global *globalOptions) *cobra.Command {

func (opts *logoutOptions) run(args []string, stdout io.Writer) error {
opts.logoutOpts.Stdout = stdout
opts.logoutOpts.AcceptRepositories = true
sys := opts.global.newSystemContext()
if opts.tlsVerify.present {
sys.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!opts.tlsVerify.value)
Expand Down

0 comments on commit 788b2e2

Please sign in to comment.