I'm a git newbie. My git repo includes submodule references. I have a post-receive hook to checkout the repo contents to my web directory:
#!/bin/sh
GIT_WORK_TREE=/home/www/hello_world_php git checkout -f
(Per this blog post.)
It works fine except that the submodule directories in the www directory are NOT populated.
How to fix?