I currently use Gearset to deploy to our Bitbucket repo. We don't quite have a perfect dev > branch > deploy process yet and some changes get made directly in production. This causes 2 sources of truth. Our git repo, and metadata in production.
To handle this, I have an automatic job that does a commit from Prod to a "ProdToMain" branch that we periodically merge back into main. This is great and handles a lot of little config changes made directly in prod.
I'm seeing this weird situation where a handful of our layout xml files are including +12 new lines of empty space each commit.
Each time I merge our "ProdToMain" branch into main, the next commit to our "ProdToMain" branch adds a new layer of blank spaces.
Any ideas here? It's not impacting functionality or anything, but this could easily get out of control over time. I don't think our dev time should be spent deleting empty lines out of files regularly.