mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 05:58:40 +08:00 
			
		
		
		
	fix: recurse submodules on cleanup
This commit is contained in:
		
							parent
							
								
									b4ffde65f4
								
							
						
					
					
						commit
						da844dd131
					
				| 
						 | 
					@ -471,7 +471,7 @@ class GitCommandManager {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async tryReset(): Promise<boolean> {
 | 
					  async tryReset(): Promise<boolean> {
 | 
				
			||||||
    const output = await this.execGit(['reset', '--hard', 'HEAD'], true)
 | 
					    const output = await this.execGit(['reset', '--hard', '--recurse-submodules', 'HEAD'], true)
 | 
				
			||||||
    return output.exitCode === 0
 | 
					    return output.exitCode === 0
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user