-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
OS: Windows
Jenkins: 2.73.2
Git_client_plugin: 2.5.0
Git has a limit of 4096 characters for a filename, except on windows when git is compiled with msys. It uses an older version of the windows api and there's a limit of 260 characters for a filename.
As mentioned in the Git Bash wiki, the `core.longpaths` config option tells git to use the UNC file paths (i.e. prepend `\\?\`). This works as long as the base path isn't too long.
Please, add an option to run `git clone` with a `-c core.length true` parameter.
alkush21 have you confirmed that setting core.longpaths has the desired result? You should be able to set it globally on the agent as a temporary test to confirm it has the desired behavior. I've not seen any net positive result from setting core.longpaths.
Before adding such a setting, I'd like to have confirmation from one or more users that it has the desired result (and does not have undesirable side effects).