Closed miku1958 closed 11 months ago
The error message "unable to normalize alternate object path" is produced here: https://github.com/microsoft/git/blob/b7dec5ad71dc527cca6550430ce40684a3b3d65a/object-file.c#L587
That's in a code path where an alternate object database needs to be accessed, but apparently cannot be. Could you see whether all the paths listed in .git\objects\info\alternates
are valid and reachable? Or maybe there is something else that is curious about them?
Also, when I look at the code that produces the error message, it actually prints out more than just the error: it prints out the path that could not be normalized. Have you analyzed this shown path yet?
Thank you @dscho! I update the path in .git\objects\info\alternates and it is fixed! I copy the .scalarCache from other machine and they has different path.
git-for-windows/git
tracker.Setup
microsoft/git
are you using? Is it 32-bit or 64-bit?Are you using Scalar or VFS for Git?
scalar
Details
zsh
Most of git command will output
unable to normalize alternate object path
, tried to remove all objects under id_ba47400f-eebe-4850-a8bf-ef694ef81414 and rungit maintenance run --task=prefetch
andgit reset --hard
to re-fetch all object but it doesn't work.If the problem was occurring with a specific repository, can you specify the repository?