Problem
The first push of a new branch in holdex/marketing lints every markdown file in the repo, rewrites 34 unrelated files, and refuses the push. No new branch lands its first commit without reformatting work it never touched.
Solution
A new branch pushes its first commit without reformatting files it never touched, in every repo running the hook.
holdex/partnerships already takes the merge base against the default branch, keeping git's empty tree only as a fallback. Marketing's copy jumps straight to the empty tree, so the two have drifted. Whether that copy gets patched, or the hook ships from one place under DEV-380, is @zolotokrylin's call.
Related to
Problem
The first push of a new branch in
holdex/marketinglints every markdown file in the repo, rewrites 34 unrelated files, and refuses the push. No new branch lands its first commit without reformatting work it never touched.Solution
A new branch pushes its first commit without reformatting files it never touched, in every repo running the hook.
holdex/partnershipsalready takes the merge base against the default branch, keeping git's empty tree only as a fallback. Marketing's copy jumps straight to the empty tree, so the two have drifted. Whether that copy gets patched, or the hook ships from one place under DEV-380, is@zolotokrylin's call.Related to