Commit 1d2ff0f
committed
fix(AI-81): fail fast when merge-base cannot be computed
Without an explicit guard, `git merge-base <base> HEAD` failing (unrelated
histories or shallow clones) leaves `MERGE_BASE` empty, and the subsequent
`git diff "..HEAD"` becomes `HEAD..HEAD` — an empty diff that would
silently produce zero chapters. Tell the agent to abort with a clear
error before continuing.1 parent 11b7833 commit 1d2ff0f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments