Skip to content

Commit

Permalink
new config key credential.oauthDeviceAuthURL
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Jul 10, 2024
1 parent 5b749cb commit 54fa20f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ func main() {
log.Fatalln(err)
}
}
bytes, err = exec.Command(gitPath, "config", "--get-urlmatch", "credential.oauthDeviceAuthURL", urll).Output()
if err == nil {
c.Endpoint.DeviceAuthURL, err = urlResolveReference(urll, strings.TrimSpace(string(bytes)))
if err != nil {
log.Fatalln(err)
}
}
bytes, err = exec.Command(gitPath, "config", "--get-urlmatch", "credential.oauthRedirectURL", urll).Output()
if err == nil {
c.RedirectURL = strings.TrimSpace(string(bytes))
Expand Down

0 comments on commit 54fa20f

Please sign in to comment.