Skip to content

[pull] master from microsoft:master#70

Merged
pull[bot] merged 2 commits intocgallred:masterfrom
microsoft:master
Mar 27, 2026
Merged

[pull] master from microsoft:master#70
pull[bot] merged 2 commits intocgallred:masterfrom
microsoft:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 27, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tyrielv and others added 2 commits March 26, 2026 10:12
Add functional test to reproduce issue #1901: running 'git restore .'
after deleting a directory with nested subdirectories fails with
'fatal: cannot create directory: Directory not empty'.

Root cause: when git recreates a deleted directory, GVFS's
NotifyNewFileCreated handler calls MarkDirectoryAsPlaceholder(), which
causes ProjFS to immediately project all children back into the
directory. Git then fails when it tries to create subdirectories that
ProjFS has already auto-projected.

Fix: skip MarkDirectoryAsPlaceholder() for directories whose path (or a
parent path) is already in ModifiedPaths, indicating git/user has taken
ownership. The directory stays non-virtualized so git can populate it
directly without ProjFS interference.

Fixes #1901

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ore-functional-test

Fix for delete/restore issue
@pull pull Bot locked and limited conversation to collaborators Mar 27, 2026
@pull pull Bot added the ⤵️ pull label Mar 27, 2026
@pull pull Bot merged commit ff944c1 into cgallred:master Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant