diff options
| author | John Wesley Walker III <81404201+jww3@users.noreply.github.com> | 2024-04-23 22:07:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 22:07:43 +0200 |
| commit | fc9adadeb71f1b3c8f35fd5658c332d23664d77a (patch) | |
| tree | 0d0e1233aaf99f930f3a0fdafba8ef1bd7cb5e76 /dist | |
| parent | a863fa8f9d0c26747b95e47544efca00d1eaa65b (diff) | |
Disable `extensions.worktreeConfig` when disabling `sparse-checkout` (#1692)
Diffstat (limited to 'dist')
| -rw-r--r-- | dist/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dist/index.js b/dist/index.js index b210247..5ff87e4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { |
