razor-tooling/eng/pipelines/checkout-windows-task.yml

11 строки
322 B
YAML

# Shallow checkout sources on Windows
steps:
- checkout: none
- script: |
@echo on
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