Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/apply-gist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ jobs:
# Large files need to be fetched from raw_url
raw_url = file_info['raw_url']
content = urllib.request.urlopen(raw_url).read().decode('utf-8')
# Gist content can be served with CRLF line endings; normalize to LF
# so 'git apply' doesn't fail against the repo's LF expected files.
content = content.replace('\r\n', '\n').replace('\r', '\n')
if is_diff:
# The diff for '<name>.txt.diff' is only allowed to touch 'tests/dotnet/UnitTests/expected/<name>.txt'.
expected_target = 'tests/dotnet/UnitTests/expected/' + filename[:-len('.diff')]
Expand Down