Util: Make sure to init/update submodules on checkout

The git_checkout() utility function must make sure that
any submodule available in the source tree gets properly
updated and initialized recursively by calling:
git submodule update --init --recursive when the option
"SYNC_ALL_SUBMODULES" is passed as last parameter

Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I83f5a64a2244e11925b0bec7e9f6396835584d06
2 files changed