mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	Merge 21358322e0 into ff7abcd0c3
				
					
				
			This commit is contained in:
		
						commit
						13783625fa
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -588,7 +588,9 @@ class GitCommandManager {
 | 
				
			||||||
    disableSparseCheckout() {
 | 
					    disableSparseCheckout() {
 | 
				
			||||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
					        return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
            yield this.execGit(['sparse-checkout', 'disable']);
 | 
					            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);
 | 
					            yield this.tryConfigUnset('extensions.worktreeConfig', false);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -178,7 +178,9 @@ class GitCommandManager {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async disableSparseCheckout(): Promise<void> {
 | 
					  async disableSparseCheckout(): Promise<void> {
 | 
				
			||||||
    await this.execGit(['sparse-checkout', 'disable'])
 | 
					    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)
 | 
					    await this.tryConfigUnset('extensions.worktreeConfig', false)
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue