pull using git including submodule

That's by design. Get the submodules as a second step.

git clone git://url...
cd repo
git submodule update --init

Then afterwards, add another step after the git pull.

git pull ...
git submodule update --recursive

Of course, this only works if the submodules are set up correctly in the first place...


You can clone with the --recursive option in order to automatically initialize and update the submodules (and any submodules that those submodules contain, etc.)

git clone --recursive <URL-OF-REPOSITORY>