From d81c381e3ecebc2ce3777208ab2fafc784662e71 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 27 Sep 2026 07:41:29 +0200 Subject: [PATCH] treefmt.withConfig: use `gitSetupHook` --- pkgs/by-name/tr/treefmt/check-wrapper.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/tr/treefmt/check-wrapper.nix b/pkgs/by-name/tr/treefmt/check-wrapper.nix index 151a99904714..4442f05c45e1 100644 --- a/pkgs/by-name/tr/treefmt/check-wrapper.nix +++ b/pkgs/by-name/tr/treefmt/check-wrapper.nix @@ -2,6 +2,7 @@ lib, gitMinimal, runCommandLocal, + gitSetupHook, stdenvNoCC, wrapper, }: @@ -17,6 +18,7 @@ runCommandLocal "${lib.getName wrapper}-check" strictDeps = true; nativeBuildInputs = [ gitMinimal + gitSetupHook wrapper ]; inherit project; @@ -34,8 +36,6 @@ runCommandLocal "${lib.getName wrapper}-check" # Setup a git repo git init --initial-branch main - git config user.name nixbld - git config user.email nixbld@example.com git add . git commit -m init --quiet