mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-01 02:28:40 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									cf03f7c7eb
								
							
						
					
					
						commit
						eac457da2f
					
				
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -8439,7 +8439,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat | ||||||
|             const sourcePath = path.join(tempRepositoryPath, fileName); |             const sourcePath = path.join(tempRepositoryPath, fileName); | ||||||
|             const targetPath = path.join(repositoryPath, fileName); |             const targetPath = path.join(repositoryPath, fileName); | ||||||
|             if (IS_WINDOWS) { |             if (IS_WINDOWS) { | ||||||
|                 yield io.cp(sourcePath, targetPath); // Copy on Windows in case Windows Defender has a lock on the files
 |                 yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
 | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|                 yield io.mv(sourcePath, targetPath); |                 yield io.mv(sourcePath, targetPath); | ||||||
|  |  | ||||||
|  | @ -59,7 +59,7 @@ export async function downloadRepository( | ||||||
|     const sourcePath = path.join(tempRepositoryPath, fileName) |     const sourcePath = path.join(tempRepositoryPath, fileName) | ||||||
|     const targetPath = path.join(repositoryPath, fileName) |     const targetPath = path.join(repositoryPath, fileName) | ||||||
|     if (IS_WINDOWS) { |     if (IS_WINDOWS) { | ||||||
|       await io.cp(sourcePath, targetPath) // Copy on Windows in case Windows Defender has a lock on the files
 |       await io.cp(sourcePath, targetPath, {recursive: true}) // Copy on Windows (Windows Defender may have a lock)
 | ||||||
|     } else { |     } else { | ||||||
|       await io.mv(sourcePath, targetPath) |       await io.mv(sourcePath, targetPath) | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 eric sciple
						eric sciple