mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Apply makeNotAllowedError to empty repos
This commit is contained in:
parent
002faa3d1c
commit
fcddf4afe3
5 changed files with 21 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue