Answer prose round 1: 0 🔴, 0 🟡 (0 misread); say the copy gets its own repository, shorten the test comment
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-12-03 13:25:50 +01:00
parent bd2c971cd3
commit 50dee4e933
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ def committed(git: Git, tree: str) -> Failure | None:
def tests_in_copy(containers: Containers, tree: str, folder: pathlib.Path, git: Git) -> Ran | Failure:
"""The test command's run in a copy of tree, removed afterwards, so what the tests write stays out of tree. The copy is
committed first, since a project's tests may call git and a tree from `git archive` holds no repository."""
"""The test command's run in a copy of tree, removed afterwards, so what the tests write stays out of tree. The copy gets a repository
of its own with one commit first, since a project's tests may call git and a tree from `git archive` holds none."""
copy = folder / "tested"
copied = on_disk(f"copy {tree} to test it", lambda: shutil.copytree(tree, copy, symlinks=True))
if isinstance(copied, Failure):