If the repo contains .gitmodules file, run the commands to clone all submodules. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com> (cherry picked from commit 6d1428ab89de6ffa5c18466a469606887a0300b8)