You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(upgrade): harden auto-commit safety and improve test coverage
- _git_status_paths returns None on failure instead of empty set, preventing
accidental commits of unrelated work when git status fails at baseline
- _prepare_upgrade_commit_files skips auto-commit when baseline is None
- Change allow_empty=True to allow_empty=False in safe_commit call
- Initialize auto_commit_warning in both code paths (no-migrations and
migrations-ran)
- Add clarifying comment about rename handling (destination path used)
- Add comprehensive unit tests for _git_status_paths parsing, _is_upgrade_commit_eligible
edge cases, failure paths, and upgrade() function wiring (27 tests total)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments