cli/pkg/cmd/auth
Mislav Marohnić 6701b526d1 Fix authenticating git operations after auth login --with-token
After completing the interactive `gh auth login` flow, the `hosts.yml`
config file will have been populated with both `oauth_token` and `user`
properties for the GitHub host. However, after `auth login --with-token`
only the `oauth_token` is persisted but no username.

This fixes `auth git-credential` behavior so it allows authentication
even if the `user` property is missing. It's entirely optional to send a
proper username for git authentication, since GitHub seems to ignore the
actual value sent and just focuses on the token itself.
2022-02-09 00:10:10 +01:00
..
gitcredential Fix authenticating git operations after auth login --with-token 2022-02-09 00:10:10 +01:00
login undo overzealous find/replace 2022-01-14 15:27:05 -06:00
logout undo overzealous find/replace 2022-01-14 15:27:05 -06:00
refresh Consistent punctuation in command usages (#5139) 2022-01-31 10:56:12 +00:00
setupgit Add auth setup-git for setting up gh as a git credential helper (#4246) 2021-12-02 16:38:34 +00:00
shared Merge pull request #5032 from cli/ask-stubber 2022-01-17 12:32:28 +01:00
status undo overzealous find/replace 2022-01-14 15:27:05 -06:00
auth.go Add auth setup-git for setting up gh as a git credential helper (#4246) 2021-12-02 16:38:34 +00:00