mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
treefmt.withConfig: use gitSetupHook
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user