# Shallow checkout sources on Windows
steps:
  - checkout: none

  - script: |
      @echo on
      set PATH=$(Agent.HomeDirectory)\externals;"%PATH%
      git init
      git remote add origin "$(Build.Repository.Uri)"
      git fetch --progress --no-tags --depth=1 origin "$(Build.SourceVersion)"
      git checkout "$(Build.SourceVersion)"
    displayName: Shallow Checkout

# Shallow checkout sources on Windows
steps:
  - checkout: none

  - script: |
      @echo on
      set PATH=$(Agent.HomeDirectory)\bin\externals;"%PATH%
      git init
      git remote add origin "$(Build.Repository.Uri)"
      git fetch --progress --no-tags --depth=1 origin "$(Build.SourceVersion)"
      git checkout "$(Build.SourceVersion)"
    displayName: Shallow Checkout

Update path to external utils
Update path to external utils