cli/pkg/cmd
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
..
actions Disable authentication check, but keep runnable 2021-06-18 23:43:42 -04:00
alias Simplify alias set documentation 2021-07-20 15:32:51 +02:00
api Fix white space 2021-06-05 20:20:57 -07:00
auth Check path for git executable before auth 2021-08-11 19:22:16 +02:00
browse don't check Fprintf error 2021-07-12 13:05:49 -05:00
completion Enable completion descriptions for powershell 2021-08-04 07:45:30 -04:00
config Fix USAGE help for some commands 2020-11-13 10:10:53 -03:00
extensions Add --force flag for extensions upgrade 2021-07-21 11:06:22 -07:00
factory Add a note about the dummy GHE hostname 2021-07-26 18:59:53 +02:00
gist Update documentation for gist create command to reflect default of secret. 2021-06-21 11:25:49 -04:00
issue Disable colorizing labels in issue list output 2021-08-03 16:02:16 +02:00
pr 💅 Cleanup local branch handling during pr checkout 2021-08-05 20:44:34 +02:00
release pr comments 2021-08-10 09:47:49 -04:00
repo Merge pull request #3813 from cli/repo-sync 2021-08-05 19:39:40 -07:00
root Merge pull request #4019 from cli/enterprise-env 2021-07-27 15:29:14 +02:00
run Add test for gh run watch --exit-status with completed runs 2021-07-12 16:58:45 +02:00
secret Fix unmarshalling GraphQL error type 2021-08-04 15:34:53 +02:00
ssh-key Merge pull request #3200 from cli/table-widths 2021-03-30 16:54:13 +02:00
version Fix link in version output 2020-12-17 12:37:22 +01:00
workflow Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00