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 1
1
package credentials
2
2
3
3
import (
4
+ "path/filepath"
5
+
4
6
"github.com/docker/cli/cli/config/types"
5
7
"github.com/docker/docker-credential-helpers/client"
6
8
"github.com/docker/docker-credential-helpers/credentials"
7
- "path/filepath"
8
9
)
9
10
10
11
const (
@@ -23,9 +24,10 @@ type nativeStore struct {
23
24
// NewNativeStore creates a new native store that
24
25
// uses a remote helper program to manage credentials.
25
26
func 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
29
31
}
30
32
return & nativeStore {
31
33
programFunc : client .NewShellProgramFunc (name ),
You can’t perform that action at this time.
0 commit comments