cli/pkg/cmdutil
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
..
args.go return msg instead of too many arguments 2021-02-24 18:05:11 +05:30
args_test.go Extract repeated code to util function 2020-11-03 22:05:04 +01:00
auth_check.go Properly check env auth tokens in CheckAuth 2020-12-01 11:44:14 -05:00
auth_check_test.go Properly check env auth tokens in CheckAuth 2020-12-01 11:44:14 -05:00
errors.go Extract cmdutil package 2020-05-20 15:21:31 +02:00
factory.go Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
file_input.go Add issue create -F <file> flag and tests 2021-02-23 14:25:32 +01:00
legacy.go Isolate pr review command 2020-07-29 19:35:54 +02:00
repo_override.go Add host back into repo flag description 2020-10-22 17:51:16 +02:00