X Tutup
Skip to content

Commit b38ce24

Browse files
committed
Ensure correct path to gh after gh auth refresh git credential setup
1 parent d853ce5 commit b38ce24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/auth/refresh/refresh.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ func refreshRun(opts *RefreshOptions) error {
129129

130130
var additionalScopes []string
131131

132-
credentialFlow := &shared.GitCredentialFlow{}
132+
credentialFlow := &shared.GitCredentialFlow{
133+
Executable: opts.MainExecutable,
134+
}
133135
gitProtocol, _ := cfg.Get(hostname, "git_protocol")
134136
if opts.Interactive && gitProtocol == "https" {
135137
if err := credentialFlow.Prompt(hostname); err != nil {

0 commit comments

Comments
 (0)
X Tutup