Gitlab

Inadvertently Pushed a Hugo Theme as a Git Submodule

Inadvertently Pushed a Hugo Theme as a Git Submodule

Have you made this mistake when using a static site generator on GitLab?

I generated this website using the static site generator Hugo, and I am hosting it on GitLab. Following the instructions on this blog, I read a comment about not pushing your Hugo themes to GitLab as a Git submodule. Not thinking about it when it came time to push my local files to GitLab, I accidentally pushed my theme as a Git submodule. Sure enough, that failed miserably. I don’t think all of the files were even committed properly since it failed importing my theme as a Git submodule.