Skip to content

Commit

Permalink
git-credential-oauth: fix ordering of git extraConfig
Browse files Browse the repository at this point in the history
Added `mkAfter` to `git.extraConfig` to ensure our oauth is last, as
required to work with additional helpers.
  • Loading branch information
KostaGorod authored Nov 1, 2024
1 parent e834140 commit 8ca921e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/programs/git-credential-oauth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in {
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];

programs.git.extraConfig.credential.helper = [
programs.git.extraConfig.credential.helper = lib.mkAfter [
("${cfg.package}/bin/git-credential-oauth"
+ lib.optionalString (cfg.extraFlags != [ ])
" ${lib.strings.concatStringsSep " " cfg.extraFlags}")
Expand Down

0 comments on commit 8ca921e

Please sign in to comment.