Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 28, 2024
1 parent 346fe60 commit 4242fd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4242fd8

Please sign in to comment.