Skip to content

Commit 5f8a897

Browse files
committed
Revert vmr-prepare
1 parent e5a8c45 commit 5f8a897

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

eng/pipelines/templates/steps/vmr-prepare.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ steps:
1010
displayName: Clone dotnet/dotnet
1111
path: vmr
1212
clean: true
13-
fetchTags: true
14-
fetchDepth: 0
1513

16-
- powershell: |
17-
$branchName = "${{ parameters.vmrBranch }}" -replace "refs/heads/", ""
18-
if (-not (git checkout --track origin/$branchName)) {
19-
throw "Failed to checkout branch $branchName"
20-
}
21-
echo "##vso[task.setvariable variable=vmrBranch]$branchName"
14+
- script: |
15+
git checkout --track origin/${{ parameters.vmrBranch }}
16+
echo "##vso[task.setvariable variable=vmrBranch]${{ parameters.vmrBranch }}"
2217
displayName: Check out ${{ parameters.vmrBranch }}
2318
workingDirectory: $(Agent.BuildDirectory)/vmr

0 commit comments

Comments
 (0)