-
Couldn't load subscription status.
- Fork 2.2k
Disable sparse-checkout on subsequent checkout #2034
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
base: main
Are you sure you want to change the base?
Conversation
59c8bd0 to
3b88dfd
Compare
3b88dfd to
6f4ecf2
Compare
72ac6fa to
e84ec7a
Compare
e84ec7a to
cf45bbb
Compare
cf45bbb to
4c58a29
Compare
If actions/checkout is invoked once with 'sparse-checkout' and cone mode disabled, core.sparseCheckout remains enabled for all subsequent invocations of actions/checkout.
4c58a29 to
2135832
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where core.sparseCheckout remains enabled after using actions/checkout with sparse-checkout, affecting subsequent checkout operations that should use the full repository.
- Explicitly sets
core.sparseCheckouttofalsein thedisableSparseCheckoutmethod - Ensures sparse-checkout configuration is properly reset for subsequent checkout operations
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable all
|
1 similar comment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If actions/checkout is invoked once with
sparse-checkoutand cone mode disabled,core.sparseCheckoutremains enabled for all subsequent invocations of actions/checkout.This PR addresses the problem by explicitly (re)setting
core.sparseCheckouttofalse(which is the workaround I currently use in my workflow via a separate step).Reproduction: