cli/pkg/cmd
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
..
alias Rename to SuccessIconWithColor 2021-01-25 14:56:39 +01:00
api Add test for api --cache behavior 2021-03-01 16:04:19 +01:00
auth Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
completion Improve completion docs for bash, zsh, fish 2020-12-16 16:57:28 +01:00
config Fix USAGE help for some commands 2020-11-13 10:10:53 -03:00
factory Use absolute path when configuring gh as git credential 2021-03-03 16:20:21 +01:00
gist just hide empty descriptions 2021-03-01 16:07:04 -06:00
issue Add issue create -F <file> flag and tests 2021-02-23 14:25:32 +01:00
pr Merge pull request #3018 from castaneai/pr-create-body-file 2021-03-02 15:21:17 +01:00
release Add issue create -F <file> flag and tests 2021-02-23 14:25:32 +01:00
repo Merge pull request #2991 from cli/repo-create-prompt-change 2021-03-02 15:14:16 +01:00
root add ssh-key command 2021-01-20 20:23:38 +01:00
secret Merge pull request #2844 from cli/secret-set-fix 2021-01-25 11:34:59 -08:00
ssh-key Add ssh-key add command and publish ssh-key 2021-02-17 19:46:59 +01:00
version Fix link in version output 2020-12-17 12:37:22 +01:00