gh: insert empty helper when using credential helper (#7347)

Resets previous helpers so the only one being used is the `gh` cli

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-06-30 12:12:19 -05:00 committed by GitHub
parent 0f21ed5182
commit ee2189cb2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -193,7 +193,10 @@ in
map (
host:
lib.nameValuePair host {
helper = "${cfg.package}/bin/gh auth git-credential";
helper = [
""
"${cfg.package}/bin/gh auth git-credential"
];
}
) cfg.gitCredentialHelper.hosts
)

View file

@ -1,7 +1,9 @@
[credential "https://github.com"]
helper = ""
helper = "@gh@/bin/gh auth git-credential"
[credential "https://github.example.com"]
helper = ""
helper = "@gh@/bin/gh auth git-credential"
[gpg]