Ensure correct path to gh after gh auth refresh git credential setup
This commit is contained in:
parent
d853ce5bc9
commit
b38ce24497
1 changed files with 3 additions and 1 deletions
|
|
@ -129,7 +129,9 @@ func refreshRun(opts *RefreshOptions) error {
|
|||
|
||||
var additionalScopes []string
|
||||
|
||||
credentialFlow := &shared.GitCredentialFlow{}
|
||||
credentialFlow := &shared.GitCredentialFlow{
|
||||
Executable: opts.MainExecutable,
|
||||
}
|
||||
gitProtocol, _ := cfg.Get(hostname, "git_protocol")
|
||||
if opts.Interactive && gitProtocol == "https" {
|
||||
if err := credentialFlow.Prompt(hostname); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue