Commit 9f51df0
Check git state before prepare_release
Add a check_git_state! method that runs at the start of prepare! to
detect stale state from a previous release attempt: leftover index.lock,
interrupted cherry-pick or rebase, and existing release branches. When
any of these are found the task aborts with actionable error messages
so the operator can resolve them before retrying.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 78ed27e commit 9f51df0
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
231 | 259 | | |
232 | 260 | | |
233 | 261 | | |
| |||
0 commit comments