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