mirror of
https://github.com/actions/checkout
synced 2025-09-22 11:47:59 +00:00
Compare commits
2 commits
3fc35baa10
...
13783625fa
Author | SHA1 | Date | |
---|---|---|---|
![]() |
13783625fa | ||
![]() |
21358322e0 |
2 changed files with 3 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -590,7 +590,7 @@ class GitCommandManager {
|
|||
yield this.execGit(['sparse-checkout', 'disable']);
|
||||
// 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).
|
||||
// Disabling 'sparse-checkout' leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||
yield this.tryConfigUnset('extensions.worktreeConfig', false);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -179,8 +179,8 @@ class GitCommandManager {
|
|||
async disableSparseCheckout(): Promise<void> {
|
||||
await this.execGit(['sparse-checkout', 'disable'])
|
||||
// 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).
|
||||
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 a new issue