From 4242fd847864eabb95e5a3f20935092e3671d048 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Wed, 28 Aug 2024 09:50:38 +0200 Subject: [PATCH] +1 --- .github/workflows/upstream pretest.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index 9c031147..270c5c27 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -464,15 +464,16 @@ jobs: New-Item -ItemType Directory -Path $main_repo_dir | Out-Null Push-Location $main_repo_dir $main_repo_url = '${{ github.server_url }}/${{ github.repository }}' - $main_repo_branch = '${{ github.event.repository.default_branch }}' - Write-Host "Cloning main repo [$main_repo_url]: branch [$main_repo_branch]" + 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 fetch --depth=1 origin $main_repo_branch --filter=tree:0 --no-progress + git fetch -c protocol.version=2 --no-tags --prune --depth=1 origin --filter=tree:0 --no-progress if (-not $?) { throw "git fetch failed" } # git branch -r