cli/pkg/cmd/auth/gitcredential
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
..
helper.go Fix authenticating git operations after auth login --with-token 2022-02-09 00:10:10 +01:00
helper_test.go Fix authenticating git operations after auth login --with-token 2022-02-09 00:10:10 +01:00