mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 08:53:35 +00:00 
			
		
		
		
	Merge 110353ee6c3f4f041737e85298588eb167dae1ca into ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
This commit is contained in:
		
						commit
						9ea8e0e803
					
				| @ -364,11 +364,13 @@ class GitAuthHelper { | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|     const pattern = regexpHelper.escape(configKey) | ||||
|     await this.git.submoduleForeach( | ||||
|       // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
 | ||||
|       `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, | ||||
|       true | ||||
|     ) | ||||
|     if (this.settings.submodules) { | ||||
|       const pattern = regexpHelper.escape(configKey) | ||||
|       await this.git.submoduleForeach( | ||||
|         // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
 | ||||
|         `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, | ||||
|         true | ||||
|       ) | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user