Repository navigation
fix(server): changed files keep their real paths for renames and non-ASCII names #20175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
juliusmarminge
merged 8 commits into
pingdotgg:main
from
Atharvsinh-codez:fix/git-status-real-paths
Oct 19, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3450b0b
fix(server): changed files keep their real paths for renames and non-…
Atharvsinh-codez 86680b5
Merge branch 'main' into fix/git-status-real-paths
Atharvsinh-codez f21194c
fix(server): stage selected files from the repository root
Atharvsinh-codez 494bc68
Merge commit '952921f39acd7793187e2b14650f1cbc447f483d' into takeover…
juliusmarminge 3a6fd15
refactor(server): simplify porcelain record lookup
juliusmarminge f7de77f
fix(web): open status files from the repository root
juliusmarminge d973a24
fix(server): the status root keeps trailing whitespace in its basename
juliusmarminge ad93c17
Merge commit 'c274a251510e4bb035f8479a7f1e96443cd2503c' into takeover…
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
cwdis a repository subdirectory (the supported nested-project case inGitVcsDriverCore.test.ts:1531), this added-zchanges porcelain-v2 names from cwd-relative to repository-relative. After checkinggit status -h(-z, --[no-]nullis documented as “terminate entries with NUL”), I reproduced from/repo/nestedthat the line form reports? new.tswhile this command reports? nested/new.ts\0.stageCommitChangesstill invokesgit --literal-pathspecs addin/repo/nested, so once the user unchecks any file, the selected path resolves to/repo/nested/nested/new.tsand the commit fails with an unmatched pathspec; use a top-anchored literal pathspec (asdiffCheckpointsdoes) or stage from the worktree root.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, confirmed. From
/repo/nested,git status --porcelain=2prints? new.tsbut-zprints? nested/new.ts. Numstat was already root-relative before this PR, so tracked edits in a nested project were already failing this way. The-zchange would have made untracked files fail too.Fixed in f21194c. Selected files are now staged with
:(top,literal)pathspecs, the same waydiffCheckpointsdoes it. I also addedcommits selected files from a nested project directory, which fails without the staging change and passes with it.