Anonymous Confessions from Programmers.
My boss always commits garbage and so my first task every morning is fixing his code. He doesn't know i do this as a conscious effort.
Share on Tumblr
I would keep detangling it but dont fix it. Bring it to him and say you don't know who did it, but it's going to cause an issue. Tell him you'll have it fixed soon, maybe he'll start being more conscious in the future if he keeps realizing this mystery person is him.
Go on holiday for two weeks and see if he notices.
Same thing at my job. Everytime my boss commits, I have to check the shit he made. I can even tell the level of shitness by the time he sent the commit. If it's like 4am it basically means we're in big trouble.