Commit 9718010
committed
feat(klipper-migration): add automatic cleanup for temporary migration branches
- Track creation of temporary branches during detached HEAD state handling
- Implement automatic cleanup using git branch -D after successful checkout
- Add comprehensive logging for cleanup operations with proper error codes
- Handle cleanup failures gracefully with warnings instead of script failure
- Prevent accumulation of orphaned temporary branches in repository
- Use GIT_TEMP_BRANCH_CLEANUP and GIT_TEMP_BRANCH_CLEANUP_FAILED error codes
- Maintain repository cleanliness throughout migration process1 parent e2be0e3 commit 9718010
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
244 | | - | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
268 | 282 | | |
269 | 283 | | |
270 | 284 | | |
| |||
0 commit comments