Enabling Windows long path support in Git plugin

230 views
Skip to first unread message

Simon Richter

unread,
Jul 25, 2016, 1:42:05 PM7/25/16
to jenkins...@googlegroups.com
Hi,

I'm trying to check out Boost, which has a file with a fairly long file
name, so the checkout fails on Windows. This could be fixed apparently
by setting the git setting core.longpaths to true.

How can I add that setting to newly created workspaces?

Simon

signature.asc

Mark Waite

unread,
Jul 25, 2016, 1:46:23 PM7/25/16
to jenkins...@googlegroups.com
One way is:

$ git config --system core.longpaths true

My tests seem to indicate (at least on one machine) that msysgit 2.8.0 and later seems to be enabling core.longpaths as true.  That is an observed behavior, not anything I could confirm in the README or release notes, and may be that I'm mistaken.

Mark Waite


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/18c20057-3d6f-1257-0646-820dc73d858a%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.

Simon Richter

unread,
Jul 25, 2016, 2:13:04 PM7/25/16
to jenkins...@googlegroups.com
Hi,

On 25.07.2016 19:45, Mark Waite wrote:

> $ git config --system core.longpaths true

That is in essence what I did, the problem is that I'd have to do that
on all of the build slaves, while ideally I'd like to have that as part
of the project configuration so I don't end up having unexplained
failures on newly commissioned slaves.

Simon

signature.asc

Mark Waite

unread,
Jul 25, 2016, 3:01:11 PM7/25/16
to jenkins...@googlegroups.com
Sorry, no way that I can detect to force longpaths to be enabled other than by configuring the git installation to have longpaths enabled (git config --system).  The Jenkins git client plugin does not have any global override for the system setting of longpaths.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages