cli/pkg
Mislav Marohnić 98f1f5ec0d Use absolute path when configuring gh as git credential
This keeps git operations working even when PATH is modified, e.g. `brew
update` will work even though Homebrew runs the command explicitly
without `/usr/local/bin` in PATH.

Additionally, this inserts a blank value for `credential.*.helper` to
instruct git to ignore previously configured credential helpers, i.e.
those that might have been set up in system configuration files. We do
this because otherwise, git will store the credential obtained from gh
in every other credential helper in the chain, which we want to avoid.

Before:

    git config --global credential.https://github.com.helper '!gh auth git-credential'

After:

    git config --global credential.https://github.com.helper ''
    git config --global --add credential.https://github.com.helper '!/path/to/gh auth git-credential'
2021-03-03 16:20:21 +01:00
..
browser Ensure that only PATH is searched when shelling out to external commands 2020-11-11 16:33:13 +01:00
cmd Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
cmdutil Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
githubtemplate get everything working 2020-11-12 12:03:32 -08:00
httpmock Migrate legacy tests 2021-01-11 21:07:19 -03:00
iostreams Rename to SuccessIconWithColor 2021-01-25 14:56:39 +01:00
jsoncolor Add tests for jsoncolor 2020-06-08 16:05:00 +02:00
markdown Add "reference" help topic (#2223) 2020-11-18 12:31:36 -06:00
prompt AskStubber now throws a more descriptive error when stubs do not match 2020-12-03 17:51:58 +01:00
set Change behavior of slice flags for issue edit and pr edit commands 2021-02-12 14:42:21 -08:00
surveyext Comment on pull requests 2021-01-21 09:47:38 -08:00
text Improve string display width calculation 2020-09-11 11:56:54 +02:00