From 76beb40fb831325ad5cc99de6c8274182c490209 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Wed, 28 Aug 2024 10:01:35 +0200 Subject: [PATCH] +3 --- .github/workflows/upstream pretest.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index 5c7449a6..3217249d 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -460,6 +460,8 @@ jobs: + git config -l + if (-not $?) { throw "git config -l failed" } $main_repo_dir = './core' New-Item -ItemType Directory -Path $main_repo_dir | Out-Null Push-Location $main_repo_dir @@ -467,12 +469,12 @@ jobs: Write-Host "Cloning main repo [$main_repo_url]" git init if (-not $?) { throw "git init failed" } - git remote add origin $main_repo_url - if (-not $?) { throw "git remote add failed" } - git config --local --name-only --get-regexp core\.sshCommand - git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ secrets.GITHUB_TOKEN }}" if (-not $?) { throw "git config failed" } + git config -l + if (-not $?) { throw "git config -l failed" } + git remote add origin $main_repo_url + if (-not $?) { throw "git remote add failed" } git -c protocol.version=2 fetch --no-tags --prune --depth=1 origin --filter=tree:0 --no-progress if (-not $?) { throw "git fetch failed" }