File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11package credentials
22
33import (
4+ "path/filepath"
5+
46 "github.com/docker/cli/cli/config/types"
57 "github.com/docker/docker-credential-helpers/client"
68 "github.com/docker/docker-credential-helpers/credentials"
7- "path/filepath"
89)
910
1011const (
@@ -23,9 +24,10 @@ type nativeStore struct {
2324// NewNativeStore creates a new native store that
2425// uses a remote helper program to manage credentials.
2526func NewNativeStore (file store , helperSuffix string ) Store {
26- name := helperSuffix
27- if ! filepath .IsAbs (name ) {
28- name = remoteCredentialsPrefix + name
27+ name = remoteCredentialsPrefix + name
28+
29+ if filepath .IsAbs (helperSuffix ) {
30+ name = helperSuffix
2931 }
3032 return & nativeStore {
3133 programFunc : client .NewShellProgramFunc (name ),
You can’t perform that action at this time.
0 commit comments