ibvhefe / SelectiveCheckout

1 stars 0 forks source link

Suggestion to support 'no tags' and lfs #1

Open Bouke opened 4 months ago

Bouke commented 4 months ago

Hi, first of all thank you for the time it took you to create this extension. I've tried it and found it doesn't work for me. I'm now using the template workaround which is sufficient for me at this point.

A shallow fetch of the full repository takes about 25 seconds. My goal is to quickly checkout the path .azuredevops. It contains just a few small files, so I expect it to be much faster than that. I ran the following steps below. They failed after ~100 seconds with an lfs error. Grabbing the lfs files would probably take a few additional seconds. The output contains a long list of tags (we tag every deployment), so I assume that's the issue here (downloading all tags). For comparison, the template version takes just 6 seconds.

Step configuration:

- checkout: none
- task: SelectiveCheckout@0
  inputs:
    pathsToCheckout: '.azuredevops'

LFS error:

Error downloading object: .azuredevops/CustomLogger.dll (93a971e): Smudge error: Error downloading .azuredevops/CustomLogger.dll (...): LFS: Git credentials for https://***@dev.azure.com/##/##/_git/## not found.

ibvhefe commented 2 months ago

Thank you for your kind words. I improved the overall performance and also don't checkout tags anymore. As for LFS, I left it out for now:

image https://stackoverflow.com/questions/48392440/git-lfs-clone-vs-git-clone

Does this work for you?