title: Jenkins Windows 10: git-submodule cannot be used without a working tree
body: <p>We have jenkins Windows 10 CI builder.</p>
  <p>Our project has submodule, which I want to &quot;git submodule update --init --recursive&quot;.</p>
  <p><strong>This command is called from cmake script</strong>, but even if one enables submodule processing the error will be the same:
  <strong>C:\Program Files\Git\mingw64/libexec/git-core\git-submodule cannot be used without a working tree.</strong>
  <a href="https://i.stack.imgur.com/cm2L5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cm2L5.png" alt="enter image description here" /></a></p>
  <p>Current setup copies all files of project from Ubuntu jenkins is run on( the setup is not known for sure and I started studying Jenkins from bottom ) and puts them into Windows CI builder into <strong>Pull_Request_Builder_Winx64</strong> folder.</p>
  <p>Tried to run git manually from this folder: result is the same</p>
  <p>Tried running update manually on the same project that is downloaded with git clone, it works.</p>
  <p>Please help find the source of the issue, thanks in advance</p>