mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 11:13:59 +08:00 
			
		
		
		
	Disable extensions.worktreeConfig when disabling sparse-checkout (#1692)
				
					
				
			This commit is contained in:
		 John Wesley Walker III
					John Wesley Walker III
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							37b082107b
						
					
				
				
					commit
					43045ae669
				
			| @@ -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> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user