Commit d0fb951
fix(release): guard _all_tags read loop against empty elements (Phase 1.5) (#3504)
The Phase 1.5 CHANGELOG completeness gate can report a phantom "missing"
tag with an empty name and bogus commit count under bash 3.2 when the
process substitution `< <(git tag --sort=-v:refname)` leaves an empty
element in the _all_tags array. Skip empty `_t` values inside the read
loop so the array only ever holds real tag names.
Verified by extracting the gate logic and running on bash 3.2:
- Unmodified CHANGELOG.md (all 5 recent tags present) -> "OK" (no phantom)
- Synthesized CHANGELOG with [0.10.2] removed -> correctly flags
"v0.10.2 (2026-06-15, 5 commits)"
Closes #3501
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8f6cc4b commit d0fb951
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments