Recently, we started getting an issue in our Automation jobs where when ran automation from Jenkins, it started failing while taking clone from the git.
The error was :
error: unable to create file
src/......../path/to/that/file/abc.java is too long.
When looked into the issue, we got to know that the root cause of this issue is the "Windows API limitation of file paths having 260 characters or fewer."
To fix this issue, we can simple follow below steps:
1. Open git bash in the machine where issue is coming with admin rights.
2. Run this command: git config --system core.longpaths true
Once this command will ran successfully, it will fix this issue.
No comments:
Post a Comment