1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Apply makeNotAllowedError to empty repos

This commit is contained in:
Eelco Dolstra 2025-04-01 15:19:46 +02:00
parent 002faa3d1c
commit fcddf4afe3
5 changed files with 21 additions and 16 deletions

View file

@ -17,7 +17,7 @@ cat > "$repo/flake.nix" <<EOF
}
EOF
expectStderr 1 nix eval "$repo#x" | grepQuiet "error: path '$repo/flake.nix' does not exist"
expectStderr 1 nix eval "$repo#x" | grepQuiet "error: File 'flake.nix' in the repository \"$repo\" is not tracked by Git."
git -C "$repo" add flake.nix