We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80174c1 commit a7c17c1Copy full SHA for a7c17c1
cli/config/credentials/native_store.go
@@ -23,11 +23,9 @@ type nativeStore struct {
23
// NewNativeStore creates a new native store that
24
// uses a remote helper program to manage credentials.
25
func NewNativeStore(file store, helperSuffix string) Store {
26
- var name string
27
- if filepath.IsAbs(helperSuffix) {
28
- name = helperSuffix
29
- } else {
30
- name = remoteCredentialsPrefix + helperSuffix
+ name := helperSuffix
+ if !filepath.IsAbs(name) {
+ name = remoteCredentialsPrefix + name
31
}
32
return &nativeStore{
33
programFunc: client.NewShellProgramFunc(name),
0 commit comments