mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 19:23:36 +00:00 
			
		
		
		
	Implement the fix
This commit is contained in:
		
							parent
							
								
									a7f790c38a
								
							
						
					
					
						commit
						92b9ac51a1
					
				
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -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) { | ||||
|  | ||||
| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user