mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-03 22:29:11 +00:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									1da0d665ed
								
							
						
					
					
						commit
						f39260cf9e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -4981,7 +4981,7 @@ function getSource(settings) {
 | 
			
		|||
            // Delete the contents of the directory. Don't delete the directory itself
 | 
			
		||||
            // since it may be the current working directory.
 | 
			
		||||
            for (const file of yield fs.promises.readdir(settings.repositoryPath)) {
 | 
			
		||||
                yield io.rmRF(settings.repositoryPath);
 | 
			
		||||
                yield io.rmRF(path.join(settings.repositoryPath, file));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        // Initialize the repository
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,7 +62,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.
 | 
			
		||||
    for (const file of await fs.promises.readdir(settings.repositoryPath)) {
 | 
			
		||||
      await io.rmRF(settings.repositoryPath)
 | 
			
		||||
      await io.rmRF(path.join(settings.repositoryPath, file))
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue