mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	Merge 9ec5884c0c into ff7abcd0c3
				
					
				
			This commit is contained in:
		
						commit
						f5b71f057e
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -711,6 +711,7 @@ class GitCommandManager {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    init() {
 | 
					    init() {
 | 
				
			||||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
					        return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
 | 
					            yield this.config('init.defaultBranch', 'main', true, true);
 | 
				
			||||||
            yield this.execGit(['init', this.workingDirectory]);
 | 
					            yield this.execGit(['init', this.workingDirectory]);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -328,6 +328,7 @@ class GitCommandManager {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async init(): Promise<void> {
 | 
					  async init(): Promise<void> {
 | 
				
			||||||
 | 
					    await this.config('init.defaultBranch', 'main', true, true)
 | 
				
			||||||
    await this.execGit(['init', this.workingDirectory])
 | 
					    await this.execGit(['init', this.workingDirectory])
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue