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
Migration on Windows will fail if you have too long paths. The problem is in handle_captitalization_filename_changes where an os.chdir is executed. This will fail if the path is too long:
FileNotFoundError: [WinError 206] The filename or extension is too long
Instead of doing an os.chdir maybe call git ls-files with the folder as argument. Git can be configured to work with long paths like this: git config --system core.longpaths true (this works for me at least).
The text was updated successfully, but these errors were encountered:
How long was the path? Can windows itself still do stuff there? I mean can you edit the name of the folder for example through the window explorer or can you cd into it in the console (cmd)?
How did core.longpaths changed the behaviour? Afterwards everything worked well with the existing code? If yes, a fix would be easy. We could just set this property in the beginning.
According to this documentation I hesistate now a bit more to set this option all the time. Maybe we can detect somehow if the path is too long and then set this config entry....
Yes, we should not enable it by default. Maybe write a note about it on the wiki? Enabling it solved my problems though. If I get some time, I will have a look at handle_captitalization_filename_changes.
Migration on Windows will fail if you have too long paths. The problem is in handle_captitalization_filename_changes where an os.chdir is executed. This will fail if the path is too long:
FileNotFoundError: [WinError 206] The filename or extension is too long
Instead of doing an os.chdir maybe call git ls-files with the folder as argument. Git can be configured to work with long paths like this:
git config --system core.longpaths true
(this works for me at least).The text was updated successfully, but these errors were encountered: