mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 16:03:35 +00:00 
			
		
		
		
	Fix cases where there is a "HEAD" file or folder at the root of the repo (or, for Windows, Head, head, etc) by making sure HEAD is not treated as a filename
This commit is contained in:
		
							parent
							
								
									8ade135a41
								
							
						
					
					
						commit
						771ed93a21
					
				| @ -471,7 +471,7 @@ class GitCommandManager { | ||||
|   } | ||||
| 
 | ||||
|   async tryReset(): Promise<boolean> { | ||||
|     const output = await this.execGit(['reset', '--hard', 'HEAD'], true) | ||||
|     const output = await this.execGit(['reset', '--hard', 'HEAD', '--'], true) | ||||
|     return output.exitCode === 0 | ||||
|   } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user