mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-01 02:28:40 +08:00 
			
		
		
		
	Set initial-branch (#427)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									f095bcc56b
								
							
						
					
					
						commit
						dad69cab55
					
				
							
								
								
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -670,7 +670,11 @@ class GitCommandManager { | ||||||
|     } |     } | ||||||
|     init() { |     init() { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|             yield this.execGit(['init', this.workingDirectory]); |             yield this.execGit([ | ||||||
|  |                 'init', | ||||||
|  |                 '--initial-branch=placeholder', | ||||||
|  |                 this.workingDirectory | ||||||
|  |             ]); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|     isDetached() { |     isDetached() { | ||||||
|  |  | ||||||
|  | @ -263,7 +263,11 @@ class GitCommandManager { | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async init(): Promise<void> { |   async init(): Promise<void> { | ||||||
|     await this.execGit(['init', this.workingDirectory]) |     await this.execGit([ | ||||||
|  |       'init', | ||||||
|  |       '--initial-branch=placeholder', | ||||||
|  |       this.workingDirectory | ||||||
|  |     ]) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async isDetached(): Promise<boolean> { |   async isDetached(): Promise<boolean> { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Josh Soref
						Josh Soref