1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-04-22 16:06:35 +02:00

Disable extensions.worktreeConfig when disabling sparse-checkout (#1692)

This commit is contained in:
John Wesley Walker III 2024-04-23 22:07:43 +02:00 committed by GitHub
parent 37b082107b
commit 43045ae669
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 3 deletions

2
dist/index.js vendored
View file

@ -582,6 +582,8 @@ class GitCommandManager {
disableSparseCheckout() {
return __awaiter(this, void 0, void 0, function* () {
yield this.execGit(['sparse-checkout', 'disable']);
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
yield this.tryConfigUnset('extensions.worktreeConfig', false);
});
}
sparseCheckout(sparseCheckout) {