Deploy fails with "Failed during stage 'preparing repo': exit status 128"

Hey there!

That’s interesting!

It looks like this file was correctly commited via Git and can be pushed and pulled to and from my repo without any issues on my local machine (running MacOS), but it does have an issue when the repo is cloned by Netlify.

I noticed that there’s a git config key regarding this issue: "Filename too long" error in Jenkins git checkout - Stack Overflow Is there any way this can be set on the Netlify runner, so that the error is fixed?

If not, is there a way I get this error log, so I can identify which files have a long filename? I think they maybe more than one.

Update: I have renamed two of the files containing Japanese characters on the filename and everything works now. It would be useful if that internal log was exposed to the build deploy log, so that we can have a better understanding of what’s going wrong during cloning.

1 Like