mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 01:58:36 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									d7ab4a7a3d
								
							
						
					
					
						commit
						1571d4fa58
					
				
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -4888,7 +4888,7 @@ class GitCommandManager { | |||
|     isDetached() { | ||||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
 | ||||
|             const output = yield this.execGit(['rev-parse', '--symbolic-full-name', 'HEAD'], true); | ||||
|             const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true); | ||||
|             return !output.stdout.trim().startsWith('refs/heads/'); | ||||
|         }); | ||||
|     } | ||||
|  |  | |||
|  | @ -172,7 +172,7 @@ class GitCommandManager { | |||
|   async isDetached(): Promise<boolean> { | ||||
|     // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
 | ||||
|     const output = await this.execGit( | ||||
|       ['rev-parse', '--symbolic-full-name', 'HEAD'], | ||||
|       ['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], | ||||
|       true | ||||
|     ) | ||||
|     return !output.stdout.trim().startsWith('refs/heads/') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 eric sciple
						eric sciple