Skip to content

Commit b2be9f5

Browse files
azure-sdksima-zhu
andauthored
Fixed the prefix of the target branch (Azure#26943)
Co-authored-by: sima-zhu <[email protected]>
1 parent a733d82 commit b2be9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/pipelines/templates/steps/credscan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
steps:
88
- pwsh: |
99
if ("$(Build.Reason)" -eq 'PullRequest') {
10-
$targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "/refs/heads/"
10+
$targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "refs/heads/"
1111
$changedFiles = git diff $targetBranch HEAD --name-only --diff-filter=d
1212
$changedFiles | ForEach-Object { Add-Content -Path "${{ parameters.SourceDirectory }}/credscan.tsv" -Value "${{ parameters.SourceDirectory }}/$_"}
1313
}

0 commit comments

Comments
 (0)