mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 23:53:36 +00:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									f39260cf9e
								
							
						
					
					
						commit
						f3137c9b2c
					
				
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -4980,6 +4980,7 @@ function getSource(settings) { | ||||
|             !(yield tryPrepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean))) { | ||||
|             // Delete the contents of the directory. Don't delete the directory itself
 | ||||
|             // since it may be the current working directory.
 | ||||
|             core.info(`Deleting the contents of '${settings.repositoryPath}'`); | ||||
|             for (const file of yield fs.promises.readdir(settings.repositoryPath)) { | ||||
|                 yield io.rmRF(path.join(settings.repositoryPath, file)); | ||||
|             } | ||||
|  | ||||
| @ -61,6 +61,7 @@ export async function getSource(settings: ISourceSettings): Promise<void> { | ||||
|   ) { | ||||
|     // Delete the contents of the directory. Don't delete the directory itself
 | ||||
|     // since it may be the current working directory.
 | ||||
|     core.info(`Deleting the contents of '${settings.repositoryPath}'`) | ||||
|     for (const file of await fs.promises.readdir(settings.repositoryPath)) { | ||||
|       await io.rmRF(path.join(settings.repositoryPath, file)) | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user