I try to write a post-receive hook to build a static webpage, but the git submodule update --init command fails. The script runs successfully when not run by the hook.