Skip to content

Commit

Permalink
Debug Mirroring (microsoft#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Nov 8, 2021
1 parent 7a26eab commit 9cca7da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/sync-mirror.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if ($null -eq $Env:AzDO_PAT -or "" -eq $Env:AzDO_PAT) {
Write-Error "PAT for Azure DevOps Repo doesn't exist!"
}

# Add the AzDO repo as a remote.
git remote add azdo-mirror "https://nibanks:$Env:AzDO_PAT@mscodehub.visualstudio.com/msquic/_git/msquic"

$SourceName = "" # The name of the branch or tag

if ($Source.StartsWith("refs/heads/")) {
Expand All @@ -52,8 +55,9 @@ if ($Source.StartsWith("refs/heads/")) {
Write-Error "Unsupported source: " + $Source
}

# Add the AzDO repo as a remote.
git remote add azdo-mirror "https://nibanks:$Env:AzDO_PAT@mscodehub.visualstudio.com/msquic/_git/msquic"
# Some extra info for debugging failures.
git log -5
git status

# Push to the AzDO repo.
try {
Expand Down

0 comments on commit 9cca7da

Please sign in to comment.