ibvhefe / SelectiveCheckout

2 stars 2 forks source link

--depth=0 fails with "fatal: depth 0 is not a positive number" #2

Closed baumheld closed 6 months ago

baumheld commented 8 months ago
steps:
  - checkout: none

  - task: SelectiveCheckout@0
    inputs:
      pathsToCheckout: '/README.md'
      fetchDepth: '0'

This fails with "fatal: depth 0 is not a positive number" Also reproducible with just git pull

git pull origin refs/heads/main --depth=0 fatal: depth 0 is not a positive number

image

PS: Interestingly, this works

- checkout: self
  fetchDepth: 0