diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index 8c268d66..6061a0b9 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -188,13 +188,13 @@ jobs: param ($ref, $key) $pattern = "^meta\.$key=([0-9a-f]{40})$" - # Write-Host "--- Looking for commit message lines matching [$pattern]" + Write-Host "--- Looking for commit message lines matching [$pattern]" $res = @() foreach ($l in git log -1 --pretty=format:"%B" $ref) { - # Write-Host "----- $l" + Write-Host "----- $l" if ($l -notmatch $pattern) { continue } $sha = $matches[1] - # Write-Host "------- FOUND: $sha" + Write-Host "------- FOUND: $sha" $res += $sha } if (-not $?) { throw "git log failed" } @@ -463,27 +463,34 @@ jobs: - Write-Host "==============================" - git config -l - if (-not $?) { throw "git config -l failed" } - Write-Host "==============================" + # Write-Host "==============================" + # git config -l + # if (-not $?) { throw "git config -l failed" } + # Write-Host "==============================" + $main_repo_dir = './core' New-Item -ItemType Directory -Path $main_repo_dir | Out-Null Push-Location $main_repo_dir $main_repo_url = '${{ github.server_url }}/${{ github.repository }}' Write-Host "Cloning main repo [$main_repo_url]" - git init - if (-not $?) { throw "git init failed" } - git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ github.token }}" - if (-not $?) { throw "git config failed" } - Write-Host "==============================" - git config -l - if (-not $?) { throw "git config -l failed" } - Write-Host "==============================" - 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" } + + git clone --filter=tree:0 --no-progress --no-checkout $main_repo_url . + if (-not $?) { throw "git clone failed" } + + # git init + # if (-not $?) { throw "git init failed" } + # git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${{ github.token }}" + # if (-not $?) { throw "git config failed" } + + # Write-Host "==============================" + # git config -l + # if (-not $?) { throw "git config -l failed" } + # Write-Host "==============================" + + # 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" } # git branch -r