File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
eng/common/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 88- pwsh : |
99 if ("$(Build.Reason)" -eq 'PullRequest') {
1010 $targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "refs/heads/"
11- $changedFiles = git diff $targetBranch HEAD --name-only --diff-filter=d
11+
12+ # Add config to disable the quote and encoding on file name.
13+ # Ref: https://github.com/msysgit/msysgit/wiki/Git-for-Windows-Unicode-Support#disable-quoted-file-names
14+ # Ref: https://github.com/msysgit/msysgit/wiki/Git-for-Windows-Unicode-Support#disable-commit-message-transcoding
15+ $changedFiles = git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff $targetBranch HEAD --name-only --diff-filter=d
1216 $changedFiles | ForEach-Object { Add-Content -Path "${{ parameters.SourceDirectory }}/credscan.tsv" -Value "${{ parameters.SourceDirectory }}/$_"}
1317 }
1418 else {
You can’t perform that action at this time.
0 commit comments