-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Ubuntu 12.04
Java 1.7
Jenkins 1.628
git-client-plugin 1.19.0 (JGit 3.7.1.201504261725-r)
git-plugin 2.4.0
Configuring Jenkins to use JGit, cloning a git repo containing symlinks leads to a clone where symlinks are replaced by files. The created clone config file contains the following:
[core]
symlinks = false
According to what I read in this JGit issue, I thought the issue would have been solved by meeting the following conditions:
- running Jenkins on java 7
- Using JGit>3.7.0, i.e. using git-client-plugin>=1.18.0
It seems I was wrong, but I don't know where to look now.
[JENKINS-30371] Symlinks still not supported on unix with JGit 3.7.1
Description |
Original:
Configuring Jenkins to use JGit, cloning a git repo containing symlinks leads to a clone where symlinks are replaced by files. The created clone config file contains the following: {code}[core] symlinks = false{code} According to what I read in [this JGit issue|https://bugs.eclipse.org/bugs/show_bug.cgi?id=354367], I thought the issue would have been solved by meeting the following conditions: * running Jenkins on java 7 * Using JGit>3.7.0, i.e. using git-client-plugin>1.18.0 It seems I was wrong, but I don't know where to look now. |
New:
Configuring Jenkins to use JGit, cloning a git repo containing symlinks leads to a clone where symlinks are replaced by files. The created clone config file contains the following: {code}[core] symlinks = false{code} According to what I read in [this JGit issue|https://bugs.eclipse.org/bugs/show_bug.cgi?id=354367], I thought the issue would have been solved by meeting the following conditions: * running Jenkins on java 7 * Using JGit>3.7.0, i.e. using git-client-plugin>=1.18.0 It seems I was wrong, but I don't know where to look now. |
Assignee | Original: Nicolas De Loof [ ndeloof ] | New: Mark Waite [ markewaite ] |
As far as I can tell from pom.xml, the JGit 3.7.1 code sets the core.symlinks value to false. At least that is what the test asserts in GitAPITestCase for JGit and for git on Windows. Those tests passed at the release of git plugin 2.4.0 and are currently passing.
Maybe the default setting will change at JGit 4.0? That is the time when JGit switches to require Java 7 as its minimum JDK. The git plugin probably won't switch to Java 7 for at least another 6 months so that we allow users time to move forward to newer Jenkins versions.
Alternately, the JGit authors may be assuming it is the responsibility of the caller to adjust the settings of core.symlinks from the default "false" to "true" if they are desired.