jenkinsci / jenkinsci/git-client-plugin
[JENKINS-47609] Add an option for a long path
- Dominant language
- Java
- Stars
- 152
- Forks
- 402
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 4
Description
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.
---
Originally reported by alkush21, imported from: Add an option for a long path
Raw content of original issue
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.
environment
```
OS: Windows
Jenkins: 2.73.2
Git_client_plugin: 2.5.0
```
Contributor guide
Assessment
This issue has not been assessed yet.