Git Diff Lies: The Untracked File Trap in CI/CD Pipelines
One conditional swap in a change detection script. That's all it took to unblock a file distribution workflow that had been silently failing for weeks.
The bug? git diff --quiet doesn't see untracked files. And when you're distributing files to repositories that don't have them yet, every target file is untracked.
This post dissects the bug, explains why it's so easy to miss, and shows the fix that makes change detection actually work.