worktree 閘:heredoc 的 body 是資料不是指令,並把 inkstone/ISEP#125 的驗收表 A–F 寫成測試
#125 缺陷 D/E(09-02 兩次實地命中):用 heredoc 寫一份內含 `cd <目錄> && git checkout X` 示範的 說明文件,整條指令沒有 git 操作卻被擋。沿用 lib/strip_heredoc.py(D20 閘同一支)先剝 body 再解析。 A–F 六條照票上期望值進 hooks/tests/(A–E 0、F 2)。 (76) 把 tokenize 層「換行被當空白吞掉」寫成已知邊界測試(舊閘同樣 exit=0,漏擋不是誤攔,與 (53) 同層,另報)。 A24:69→77。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0178ef1fGw3XeZtpN7LaZrm4
This commit is contained in:
@@ -376,7 +376,7 @@ leo 當場:「**這些為什麼不寫到票裡?**」
|
||||
|
||||
## ⚠️ MISTAKE: 閘看的是 hook 自己的環境/cwd,不是指令要動的那個 repo
|
||||
|
||||
票: `inkstone/ISEP#109`(comment 6587/6629)
|
||||
票: `inkstone/ISEP#109`(comment 6587/6629);`inkstone/ISEP#125` 是缺陷 A 與 D 的原票(09-02 開)
|
||||
日期: 2026-09-07
|
||||
|
||||
症狀: 同一天兩支閘同一個病。① `line-needs-own-worktree.sh` 印的出路
|
||||
|
||||
Reference in New Issue
Block a user