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 8
8
- pwsh : |
9
9
if ("$(Build.Reason)" -eq 'PullRequest') {
10
10
$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
12
16
$changedFiles | ForEach-Object { Add-Content -Path "${{ parameters.SourceDirectory }}/credscan.tsv" -Value "${{ parameters.SourceDirectory }}/$_"}
13
17
}
14
18
else {
You can’t perform that action at this time.
0 commit comments