title: fatal: Needed a single revision(gitlab runner error)
body: <p>When adding a submodule  to my Gitlab repo, I install the main branch:</p>
  <p>git submodule add -b main ../../some-project/my-repo.git</p>
  <p>After that I use the gitlab runner with variables:</p>
  <p>GIT_SUBMODULE_STRATEGY: normal</p>
  <p>GIT_SUBMODULE_UPDATE_FLAGS: &quot;--remote --merge&quot;</p>
  <p>Everything works fine, but when you change the submodule branch in .gitmodules to another one, let's say &quot;feature&quot; (changed both manually in the file and with the command git submodule set-branch -b feature my-repo), then the pipeline drops with this: fatal: Needed a single revision</p>
  <p>Unable to find current origin/feature revision in submodule path 'my-repo'</p>
  <p>Locally, the command &quot;git submodule update --init --remote --merge my-repo&quot; works fine, updating the submodule to the latest commit in the &quot;feature&quot; branch</p>