-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Parallel checkout fails to unlik directories #3904
Comments
Could you please construct a smaller example that still reproduces the issue? |
OK, here's a smaller example. starting from an empty repo with a single # Create a fresh repo with with just one file under dir/subdir.
$ mkdir repo && cd $_
$ git init
$ mkdir -p dir/subdir && touch dir/subdir/file
$ git add dir && git commit -m "Add test data"
# Enable parallel checkout, which causes the following checkout / restore to fail.
$ git config checkout.workers 2
# Force a checkout of the test data, which fails in Git 2.36.1.
$ rm -rf dir
$ git restore dir
$ git checkout -- dir |
Excellent. With this example, I can reproduce locally and am investigating now. |
Ah. It's this one again. If you run |
@vagabundmw could you kindly test either the installer or portable Git at https://github.com/git-for-windows/git/actions/runs/2544507139#artifacts? |
@dscho, I can confirm the fix is working fine. Thank you for your work! |
When parallel checkout is enabled, Git checkout and related commands error out.
#1442 produces similar error messages but is probably not related to parallel checkout.
Setup
defaults?
to the issue you're seeing?
I've enabled parallel checkout:
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
No failure to restore the working directory: all removed files restored.
A failure to to restore the working directory "Unlink of file '...' failed". The exact directory from the error message varies per invocation, i.e., is not fully predicable.
This was only observable on three independent Windows 10 machines. I could not identify any third party SW that could be related to this issue. I could not reproduce on Linux (Raspbian, Fedora). Windows Defender is active, but disabling it did not affect this issue.
The error message does not show up during sequential checkout, that is, with Git config option
checkout.workers =1
.The text was updated successfully, but these errors were encountered: