mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-23 20:05:33 +00:00
Disable extensions.worktreeConfig
when disabling sparse-checkout
(#1692)
This commit is contained in:
parent
37b082107b
commit
43045ae669
4 changed files with 21 additions and 3 deletions
|
@ -178,6 +178,8 @@ 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).
|
||||
await this.tryConfigUnset('extensions.worktreeConfig', false)
|
||||
}
|
||||
|
||||
async sparseCheckout(sparseCheckout: string[]): Promise<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue