mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user