From 5efcac492566e965820be757556bfdc1f17a2475 Mon Sep 17 00:00:00 2001 From: godosa Date: Wed, 7 Oct 2026 07:57:29 +0200 Subject: wf finish: status -uall so new untracked file paths are accepted Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2 --- tests/test_finish.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/test_finish.py b/tests/test_finish.py index 38fceb1..e7ac11b 100644 --- a/tests/test_finish.py +++ b/tests/test_finish.py @@ -88,6 +88,13 @@ class FinishTest(Cli): self.assertEqual(out.count("TASKS.md"), 1, out) self.assertEqual(self.out("log", "--format=%s", "master"), "bk\ninit\n") + def test_new_untracked_dir_file_path_accepted(self): + (self.wt / "docs" / "notes").mkdir(parents=True) + (self.wt / "docs" / "notes" / "SCOPE.md").write_text("s\n") + code, out, err = self.finish("t-three", "-m", "ok", "--commit", "impl", "docs/notes/SCOPE.md", "--no-push") + self.assertEqual((code, err), (0, ""), out) + self.assertIn("docs/notes/SCOPE.md", self.out("show", "--stat", "--format=", "master~1")) + def test_dirty_outside_paths_refused_before_done(self): self.write_code() (self.wt / "DESIGN.md").write_text("stray\n") -- cgit