1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

tests/git: add git-lfs test

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-18 09:14:58 -05:00
parent 2e527427b1
commit 4fef8e73a6
3 changed files with 33 additions and 0 deletions

View file

@ -8,6 +8,7 @@
git-without-signing-key-id = ./git-without-signing-key-id.nix;
git-without-signing = ./git-without-signing.nix;
git-with-hooks = ./git-with-hooks.nix;
git-with-lfs = ./git-with-lfs.nix;
git-with-maintenance = ./git-with-maintenance.nix;
git-patdiff = ./git-patdiff.nix;
}

View file

@ -0,0 +1,15 @@
[filter "lfs"]
clean = "git-lfs clean -- %f"
process = "git-lfs filter-process --skip"
required = true
smudge = "git-lfs smudge --skip -- %f"
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "@gnupg@/bin/gpg"
[user]
email = "user@example.org"
name = "John Doe"

View file

@ -0,0 +1,17 @@
{
programs.git = {
enable = true;
userName = "John Doe";
userEmail = "user@example.org";
lfs = {
enable = true;
skipSmudge = true;
};
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config ${./git-with-lfs-expected.conf}
'';
}