Ensure correct path to gh after gh auth refresh git credential setup

This commit is contained in:
Mislav Marohnić 2021-09-24 14:43:48 +02:00
parent d853ce5bc9
commit b38ce24497

View file

@ -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 {