gh: fix protocol setting (#1831)
* gh: fix protocol setting * gh: fix test
This commit is contained in:
parent
fb9bf032fb
commit
3327cbe1f9
|
@ -47,7 +47,9 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.gh ];
|
||||
|
||||
xdg.configFile."gh/config.yml".text =
|
||||
builtins.toJSON { inherit (cfg) aliases editor gitProtocol; };
|
||||
xdg.configFile."gh/config.yml".text = builtins.toJSON {
|
||||
inherit (cfg) aliases editor;
|
||||
git_protocol = cfg.gitProtocol;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
assertFileExists home-files/.config/gh/config.yml
|
||||
assertFileContent home-files/.config/gh/config.yml ${
|
||||
builtins.toFile "config-file.yml" ''
|
||||
{"aliases":{"co":"pr checkout"},"editor":"vim","gitProtocol":"https"}''
|
||||
{"aliases":{"co":"pr checkout"},"editor":"vim","git_protocol":"https"}''
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue