Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sparse-checkout add <patterns> additive for each pipeline run #7

Open
mthurlkill-nano opened this issue Jul 3, 2024 · 0 comments
Open

Comments

@mthurlkill-nano
Copy link

I believe there is a bug that will result in the sparse-checkout config including multiple paths for subsequent runs of a pipeline.
Not an issue for ADO hosted agents, since they are wiped each time, but is an issue for self hosted agents.
SelectiveCheckout calls git clone on the directory. Then calls "git sparse-checkout add" for each path specified.
In the subsequent run, git clone will essenrially be a nop if pointing to the same directory.
Then git sparse-checkout add will add the same paths again, or if the paths were changed you might have some that you weren't intending still there and new ones added.
Maybe call "git sparse-checkout set /" before the calls to git sparse-checkout add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant