mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-04 14:49:12 +00:00 
			
		
		
		
	Merge 38cd156730 into ff7abcd0c3
				
					
				
			This commit is contained in:
		
						commit
						dd783235ce
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -796,7 +796,7 @@ class GitCommandManager {
 | 
				
			||||||
    submoduleUpdate(fetchDepth, recursive) {
 | 
					    submoduleUpdate(fetchDepth, recursive) {
 | 
				
			||||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
					        return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
            const args = ['-c', 'protocol.version=2'];
 | 
					            const args = ['-c', 'protocol.version=2'];
 | 
				
			||||||
            args.push('submodule', 'update', '--init', '--force');
 | 
					            args.push('submodule', 'update', '--init', '--force', '--checkout');
 | 
				
			||||||
            if (fetchDepth > 0) {
 | 
					            if (fetchDepth > 0) {
 | 
				
			||||||
                args.push(`--depth=${fetchDepth}`);
 | 
					                args.push(`--depth=${fetchDepth}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -411,7 +411,7 @@ class GitCommandManager {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async submoduleUpdate(fetchDepth: number, recursive: boolean): Promise<void> {
 | 
					  async submoduleUpdate(fetchDepth: number, recursive: boolean): Promise<void> {
 | 
				
			||||||
    const args = ['-c', 'protocol.version=2']
 | 
					    const args = ['-c', 'protocol.version=2']
 | 
				
			||||||
    args.push('submodule', 'update', '--init', '--force')
 | 
					    args.push('submodule', 'update', '--init', '--force', '--checkout')
 | 
				
			||||||
    if (fetchDepth > 0) {
 | 
					    if (fetchDepth > 0) {
 | 
				
			||||||
      args.push(`--depth=${fetchDepth}`)
 | 
					      args.push(`--depth=${fetchDepth}`)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue