cli/pkg/cmd/auth
Shaharyar Ahmed e28236a447 Check path for git executable before auth
There was a bug where if git was not installed then gh would do its
authentication and try to configure git but would then find out that the
git executable was not in PATH.

Now gh checks to see if the git executable is in PATH before
authenticating the user. If the git executable is in PATH the
authentication continues as normal, if it is not in PATH then it prints
out an error to the console:

$ git executable not found in $PATH

Resolves: #3818
2021-08-11 19:22:16 +02:00
..
gitcredential Fix auth git-credential when the token comes from environment 2021-02-19 15:37:11 +01:00
login Check path for git executable before auth 2021-08-11 19:22:16 +02:00
logout Fix detecting cases when cfg.Hosts() is empty 2021-07-20 15:50:58 +02:00
refresh Fix detecting cases when cfg.Hosts() is empty 2021-07-20 15:50:58 +02:00
shared Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
status Fix detecting cases when cfg.Hosts() is empty 2021-07-20 15:50:58 +02:00
auth.go If git credential helper is non-defined, set gh as credential helper 2020-11-23 20:20:05 +01:00