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