You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the above issue can still be reproduced with an RC build of 28.0.
Based on where the unknown error occurred while reading the configuration files occurs in the code, I speculate that the "atomic rename" of config.lock to config is allowing subsequent readers to read an incomplete version of the config file.
(Previously discussed in #5369, but I have a clear reproduction now. Please let me know if you can/can't reproduce it also, either on Windows or Linux)
The text was updated successfully, but these errors were encountered:
After some more understanding, I think this would better belong on the upstream Git project, so I have sent a message to the Git mailing list. I'm not sure if it still makes sense here, as I do see some other issues discussing what appear to be upstream Git concerns, so feel free to close.
I will update both threads with any noteworthy updates if this stays open.
Git for Windows encounters fatal errors that do not happen on Linux when reading and writing the Git config in parallel processes.
This can be relatively easily reproduced by running in parallel (e.g., in two separate terminal/PowerShell windows):
The
rev-parse
"thread" will spew messages like:This affects any command that reads the Git config (which is all/most of them);
rev-parse
is just a convenient stand-in.There is work to make lockfile renames (and thus config edits) more atomic in https://lore.kernel.org/all/[email protected]/T/
However, the above issue can still be reproduced with an RC build of 28.0.
Based on where the
unknown error occurred while reading the configuration files
occurs in the code, I speculate that the "atomic rename" ofconfig.lock
toconfig
is allowing subsequent readers to read an incomplete version of the config file.(Previously discussed in #5369, but I have a clear reproduction now. Please let me know if you can/can't reproduce it also, either on Windows or Linux)
The text was updated successfully, but these errors were encountered: