My use case is I want to create a shallow clone using shallow-since
as noted in How do I remove the old history from a git repository?
However, checkout
does not provide that option.
My assumption would be to do a
- checkout: none
- bash: |
git clone $(Build.Repository.Uri) \
--shallow-since 2020-01-01 \
$(Build.SourcesDirectory)
But I am not sure where to put the credentials. The variables I can probably look up.
I've added a feature request for checkout
so I won't need a workaround in the future.
I am suspecting it is something with System.AccessToken