Git submodule update errors

I run this site using a WordPress Skeleton setup. WordPress runs in a sub-directory as a submodule.

When a WordPress update is released, as it was this-morning, I update my local repo and push it to the site. My understanding is, when I log onto the server I should be able to run the following to update:

git pull
git submodule update

Every time, I get the error fatal: reference is not a tree: followed by the commit’s hash and have to mess around on the server to get the update working.

Answers on Stack Overflow aren’t helping, so any tips? Treat me like an idiot.

Categorized as Quick Notes

By Peter Wilson

Peter has worked on the web for twenty years on everything from table based layouts in the 90s to enterprise grade CMS development. Peter’s a big fan of musical theatre and often encourages his industry colleagues to join him for a show or two in New York or in the West End.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.