refactor: remove portal deployment coupling
This commit is contained in:
@@ -44,4 +44,17 @@ printf 'FROM scratch\n' > "$fixture_root/Dockerfile"
|
||||
|
||||
"$repo_root/scripts/verify-line-endings.sh" "$fixture_root"
|
||||
|
||||
git_fixture="$fixture_root/git-worktree"
|
||||
mkdir -p "$git_fixture"
|
||||
git -C "$git_fixture" init -q
|
||||
printf 'tracked then deleted\n' >"$git_fixture/deleted.md"
|
||||
git -C "$git_fixture" add deleted.md
|
||||
rm "$git_fixture/deleted.md"
|
||||
|
||||
git_output="$(cd "$git_fixture" && "$repo_root/scripts/verify-line-endings.sh" 2>&1)"
|
||||
if grep -Fq 'No such file or directory' <<<"$git_output"; then
|
||||
echo "line-ending verifier tried to read a tracked deletion" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "line-ending verifier tests passed"
|
||||
|
||||
Reference in New Issue
Block a user