Only test and db-tools require submodule update (#4765)

This commit is contained in:
Andrea Lanfranchi 2022-07-20 13:42:33 +02:00 committed by GitHub
parent 2706b01cea
commit f8c37be3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ Write-Host @"
"@
if (!$WnoSubmoduleUpdate -and $BuildTargets[0] -ne "clean") {
if (!$WnoSubmoduleUpdate -and $BuildTargets[0] -ne "clean" -and ($BuildTargets.Contains("test") -or $BuildTargets.Contains("db-tools"))) {
Write-Host " Updating git submodules ..."
Invoke-Expression -Command "git.exe submodule update --init --recursive --force --quiet"
if (!($?)) {