mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 01:58:36 +08:00 
			
		
		
		
	test submodule depth
This commit is contained in:
		
							parent
							
								
									80602fafba
								
							
						
					
					
						commit
						9350fe341a
					
				
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -5482,6 +5482,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'); | ||||||
|             if (fetchDepth > 0) { |             if (fetchDepth > 0) { | ||||||
|                 args.push(`--depth=${fetchDepth}`); |                 args.push(`--depth=${fetchDepth}`); | ||||||
|  |  | ||||||
|  | @ -263,6 +263,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') | ||||||
|     if (fetchDepth > 0) { |     if (fetchDepth > 0) { | ||||||
|       args.push(`--depth=${fetchDepth}`) |       args.push(`--depth=${fetchDepth}`) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 eric sciple
						eric sciple