-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-47609] Add clone option "core.longpaths" to enable .git/config "core" property #856
[JENKINS-47609] Add clone option "core.longpaths" to enable .git/config "core" property #856
Conversation
My fork is 91 commits behind master
Merged because way behind in commits
…es due to CloneOption signature modification
The build will fail because the changes made in git-client-plugin have to be merged first. Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
|
Since there is an issue with git-for-windows, I'd like your opinion on how to move forward on this case. Not all git commands honor longpaths=true property, hence we might not be able to implement this feature until I write a regression test for them, and they work towards a fix after that. |
The "incrementals" facility allows a plugin to depend on an incremental (unreleased) build of another plugin. In this case, you can submit a pull request to git client plugin and then read the incremental name from the ci.jenkins.io artifacts of the pull request build. Declare the git-client-plugin dependency in the pom on that incremental version and build with it. |
I think we should proceed as though the git for windows issue is fixed. It would be good to have this option in the CLI implementation of the git client plugin, even if it does not handle all cases yet. |
@MarkEWaite Would it be acceptable to remove the test cases then? I can raise a PR with the feature but I haven't tested it for all cases. It is not working in the case of a directory clone path >255 char, not able to access the local git config file. |
Rather than remove the test cases, you can place the |
I'm closing this pull request for now, since it depends on a change in git for windows. We can reopen it in the future if we see the change in git for windows. |
JENKINS-47609

**The figure shows addition of the new option.**Some users face a 260 character limit for filenames in a Windows environment although Git has a limit of 4096 characters for a filename.
By setting core.longpaths to true in git config, we bypass this limit. This clone option provides this setting.
Checklist
Types of changes