title: Azure pipelines submodules clone failed
body: <p>I created main project</p>
  <p><a href="https://dev.azure.com/GilbertHsu/pipeline_test" rel="noreferrer">https://dev.azure.com/GilbertHsu/pipeline_test</a></p>
  <p>with 3 projects as submodules in the main project</p>
  <p><a href="https://dev.azure.com/GilbertHsu/otherProjectA" rel="noreferrer">https://dev.azure.com/GilbertHsu/otherProjectA</a></p>
  <p><a href="https://dev.azure.com/GilbertHsu/otherProjectB" rel="noreferrer">https://dev.azure.com/GilbertHsu/otherProjectB</a></p>
  <p><a href="https://dev.azure.com/GilbertHsu/otherProjectC" rel="noreferrer">https://dev.azure.com/GilbertHsu/otherProjectC</a></p>
  <p>Which are using default settings of each project. And in the pipelines azure-pipelines.yml:</p>
  <pre><code>jobs:
  - job: MacOS
    strategy:
      matrix:
        mac:
          imageName: 'macOS-10.14'
    pool:
      vmImage: $(imageName)
    steps:
      - template: azure-pipelines-ci/macos.yml
  </code></pre>
  <p>in the azure-pipelines-ci/macos.yml:</p>
  <pre><code># macOS-specific:
  # ref. https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&amp;tabls=schema%2Cparameter-schema&amp;tabs=schema%2Cparameter-schema#checkout
  steps:
    - checkout: self
      clean: true
      path: pipeline-test 
      submodules: true
  </code></pre>
  <p>the .gitmodules:</p>
  <pre><code>[submodule &quot;otherProjectA&quot;]
      path = otherProjectA
      url = ../../../otherProjectA/_git/otherProjectA
  [submodule &quot;otherProjectB&quot;]
      path = otherProjectB
      url = ../../../otherProjectB/_git/otherProjectB
  [submodule &quot;otherProjectC&quot;]
      path = otherProjectC
      url = ../../../otherProjectC/_git/otherProjectC
  </code></pre>
  <p>when I trigger the pipelines, it always failed in</p>
  <pre><code>Submodule 'otherProjectA' (https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectA/_git/otherProjectA) registered for path 'otherProjectA'
  Submodule 'otherProjectB' (https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectB/_git/otherProjectB) registered for path 'otherProjectB'
  Submodule 'otherProjectC' (https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectC/_git/otherProjectC) registered for path 'otherProjectC'
  Cloning into '/Users/runner/work/1/VMCPS/otherProjectA'...
  remote: TF401019: The Git repository with name or identifier otherProjectA does not exist or you do not have permissions for the operation you are attempting.
  fatal: repository 'https://dev.azure.com/GilbertHsu/otherProjectA/_git/otherProjectA/' not found
  fatal: clone of 'https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectA/_git/otherProjectA' into submodule path '/Users/runner/work/1/VMCPS/otherProjectA' failed
  Failed to clone 'otherProjectA'. Retry scheduled
  Cloning into '/Users/runner/work/1/VMCPS/otherProjectB'...
  remote: TF401019: The Git repository with name or identifier otherProjectB does not exist or you do not have permissions for the operation you are attempting.
  fatal: repository 'https://dev.azure.com/GilbertHsu/otherProjectB/_git/otherProjectB/' not found
  fatal: clone of 'https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectB/_git/otherProjectB' into submodule path '/Users/runner/work/1/VMCPS/otherProjectB' failed
  Failed to clone 'otherProjectB'. Retry scheduled
  Cloning into '/Users/runner/work/1/VMCPS/otherProjectC'...
  remote: TF401019: The Git repository with name or identifier otherProjectC does not exist or you do not have permissions for the operation you are attempting.
  fatal: repository 'https://dev.azure.com/GilbertHsu/otherProjectC/_git/otherProjectC/' not found
  fatal: clone of 'https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectC/_git/otherProjectC' into submodule path '/Users/runner/work/1/VMCPS/otherProjectC' failed
  Failed to clone 'otherProjectC'. Retry scheduled
  Cloning into '/Users/runner/work/1/VMCPS/otherProjectA'...
  remote: TF401019: The Git repository with name or identifier otherProjectA does not exist or you do not have permissions for the operation you are attempting.
  fatal: repository 'https://dev.azure.com/GilbertHsu/otherProjectA/_git/otherProjectA/' not found
  fatal: clone of 'https://GilbertHsu@dev.azure.com/GilbertHsu/otherProjectA/_git/otherProjectA' into submodule path '/Users/runner/work/1/VMCPS/otherProjectA' failed
  Failed to clone 'otherProjectA' a second time, aborting
  </code></pre>
  <p>Googled for such error message, I've tested for the following methods</p>
  <ol>
  <li>Set the permissions of each submodules: I add &quot;pipeline_test Build Service&quot; to Users of &quot;Repositories Permissions&quot; of each submodule but still got failed.</li>
  <li>Use PAT in the url but not working.</li>
  </ol>
  <p>I've been stuck on this issue for several days and really need kindly helping hands.</p>