Files
windmill/cli/test
hugocasaandClaude Opus 5 da129416f1 fix(cli): stop the migration guard misreading its own git history
`gitRecordedDatatableMigrationPaths` decides whether a data table migration the
working tree no longer has was ever tracked, and a push keeps the migration when
the answer is no. Two ways it answered wrongly:

`core.quotePath` is on by default, so a path holding a non-ASCII byte came back
C-quoted ("migrations/datatable/dt/1_caf\303\251.up.sql") and matched nothing the
caller held, reading as never recorded.

`git log HEAD` fails on a repository with no commits, which fell into "its
history could not be read" and told the user to check that git runs correctly.
Git runs fine; there is nothing committed yet, and that is what it now says.

Both are guarded by a temp-repo test, since the answer is a property of git's
output rather than of any logic testable without it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 16:32:18 +02:00
..