From 6b8c65839076c69ed56404d751338daa45b4e751 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Fri, 9 Aug 2024 00:02:48 +0200 Subject: [PATCH] +3 --- .github/workflows/upstream pretest.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index 303482f9..b687d54a 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -22,8 +22,16 @@ jobs: - run: | - $submodules = Get-Content .gitmodules | - Select-String -Pattern 'path\s*=' | - ForEach-Object { $_ -replace '.*path\s*=\s*', '' } + git submodule --init - $submodules | Out-Host \ No newline at end of file + foreach ($subm_path in git submodule --quiet foreach 'echo $path') { + Write-Host $subm_path + Push-Location $subm_path + + git config --add remote.origin.fetch "+refs/pull/*/merge:refs/remotes/origin/pr/*" + + git fetch --dry-run origin + + Pop-Location + } + \ No newline at end of file