KamoCRM

Stop telling implementers to run git commit --allow-empty

Docskamo-internal
Shipped
August 27, 2026 at 7:37 AM UTC
Author
kamo
Commit
0446c19

--allow-empty PERMITS an empty result, it does not force one. With no pathspec it still commits the index, and these checkouts always have another session's work staged in them. A peer ran this exact line and shipped a re-add of a deleted translation key, taking the marketing build red for ~40 minutes. Both rebuild triggers now build the empty commit out of tree from origin's own tree, where there is no index to sweep, and assert the --stat is empty before pushing.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing