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