Skip to content

Commit

Permalink
Accept repositories on login/logout
Browse files Browse the repository at this point in the history
We now synchronize the behavior with Podman and accept repositories
during login and logout per default.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Aug 2, 2021
1 parent 920f0b2 commit 961d5da
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 961d5da

Please sign in to comment.