Problem releasing a package containing a submodule

The .gitmodules file makes it into the release repo, but the stub directory doesn't, so the submodule doesn't get properly inserted and the build fails.

Looks like some discussion on the issue here: http://stackoverflow.com/questions/5482544/how-can-i-use-git-archive-to-include-submodules-from-a-bare-repository