Run every tool's git through git_repo.git, with rule-hook's guards as an option

This commit is contained in:
2026-10-21 19:35:15 +02:00
parent 583b85eea8
commit a261669735
15 changed files with 116 additions and 110 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ class Premises(unittest.TestCase):
(checkout.temp / "fake-bin" / "git").unlink()
run = checkout.run([worker()])
self.assertEqual((run.code, run.calls), (1, []))
self.assertEqual(run.stderr.strip(), "could not start git: No such file or directory")
self.assertEqual(run.stderr.strip(), "git rev-parse --show-toplevel could not start: [Errno 2] No such file or directory: 'git'")
def test_makes_no_worktree_for_a_readme_without_premises(self):
checkout = Checkout(self)