mirror of
https://github.com/actions/checkout.git
synced 2026-03-07 08:51:46 +08:00
Compare commits
2 Commits
b7da88c3a2
...
3b2c41384e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b2c41384e | ||
|
|
21358322e0 |
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -760,7 +760,9 @@ 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).
|
||||
// Ensures that a previously enabled 'sparse-checkout' (e.g. via sparseCheckoutNonConeMode) is also disabled in the config.
|
||||
yield this.execGit(['config', 'core.sparseCheckout', 'false']);
|
||||
// Disabling 'sparse-checkout' leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||
yield this.tryConfigUnset('extensions.worktreeConfig', false);
|
||||
});
|
||||
}
|
||||
|
||||
@ -196,7 +196,9 @@ class GitCommandManager {
|
||||
|
||||
async disableSparseCheckout(): Promise<void> {
|
||||
await this.execGit(['sparse-checkout', 'disable'])
|
||||
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||
// Ensures that a previously enabled 'sparse-checkout' (e.g. via sparseCheckoutNonConeMode) is also disabled in the config.
|
||||
await this.execGit(['config', 'core.sparseCheckout', 'false'])
|
||||
// Disabling 'sparse-checkout' leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||
await this.tryConfigUnset('extensions.worktreeConfig', false)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user