Git Submodule Silently Became Regular Files — How I Diagnosed and Fixed It
I ran git submodule update --remote --merge and nothing happened. My Hugo theme was stuck at an old version. Turns out I had accidentally replaced the submodule with manually copied files without realizing it. Here’s how I diagnosed the git state mismatch, restored the proper submodule, and fixed the Cloudflare Pages deployment failure that followed.