cli/pkg
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
..
cmd Check path for git executable before auth 2021-08-11 19:22:16 +02:00
cmdutil Merge pull request #3942 from dscho/complete--repo-flag 2021-07-28 17:27:56 +02:00
export Extract JSON filtering functionality from gh api 2021-04-13 16:48:21 +02:00
extensions Add --force flag for extensions upgrade 2021-07-21 11:06:22 -07:00
findsh Improvements to gh extensions 2021-06-21 16:54:08 +02:00
githubsearch Add a unified GitHub Search query builder 2021-03-23 18:52:58 +01:00
githubtemplate Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00
httpmock Separate payload structs for REST vs GraphQL repo create 2021-07-15 12:56:14 +02:00
iostreams modified HexToRGB to check whether terminal and gh have color enabled, as well as created tests for HexToRGB 2021-07-03 17:09:25 -07:00
jsoncolor Fix "null" display in colored JSON output 2021-05-12 16:56:52 +02:00
markdown Enable emoji in markdown 2021-04-12 09:50:51 -07:00
prompt make prompt.Confirm stubbable 2021-06-08 15:49:37 -05:00
set Have StringSet preserve original order of values 2021-04-07 19:55:09 +02:00
surveyext Fix test flaky due to race in showing/hiding cursor 2021-06-14 10:58:53 +02:00
text Improve string display width calculation 2020-09-11 11:56:54 +02:00