Repository navigation
Decode quoted Git paths in path-only diff renames - #1379
Merged
Merged
Conversation
leaf-agent
commented
Sep 28, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
A quoted path that begins with a UTF-8 BOM is decoded differently here and by Pierre: Pierre retains U+FEFF, while this decoder removes it. The valid four-line rename then fails the path equality check and the whole diff is refused. The manifest decoder also retains U+FEFF, so the two Leaf paths disagree.
Git path decoding now retains an initial UTF-8 BOM, matching Pierre and the manifest decoder. Extend the path-only rename browser case to assert the preserved path and the rendered row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main nightly run failed the path-only rename browser case. Git writes the tabbed filename as a quoted C-style path, while Pierre returns its decoded path. Leaf compared those two forms directly and rejected an otherwise valid four-line rename block. The widget now decodes the source paths before comparing them with Pierre's reading; the existing browser case checks the decoded names that the user sees.
The case failed locally before the change, then passed after it and in 18 concurrent repetitions. Pre-commit checks pass. The surrounding diff selection passed 18 cases and still fails two thread workflow-status cases also present in the main run; this PR does not change that workflow. The other nightly failures remain tracked in #1283, including published-site layout work in #1307.
Refs #1283.