mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 01:58:36 +08:00 
			
		
		
		
	Only clean submodules when clean is set to true
This commit is contained in:
		
							parent
							
								
									30cd0465ca
								
							
						
					
					
						commit
						dde2556f7a
					
				|  | @ -177,8 +177,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | |||
|         core.endGroup() | ||||
| 
 | ||||
|         // Clean existing submodules
 | ||||
|         if (settings.clean) | ||||
|         { | ||||
|             await git.submoduleReset(settings.nestedSubmodules) | ||||
|             await git.submoduleClean(settings.nestedSubmodules) | ||||
|         } | ||||
| 
 | ||||
|         // Checkout submodules
 | ||||
|         core.startGroup('Fetching submodules') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Laura Bailey
						Laura Bailey