Mark Waite commented on Bug JENKINS-18951

The message "JGit doesn't support reference repository" appears because you've added an advanced configuration option (Advanced clone behaviours) and assigned a value to the reference repository field.

However, that message should not prevent checkout of any arbitrary branch with JGit. It doesn't prevent checkout in the tests I performed.

I created a git repository https://github.com/MarkEWaite/longpaths.git with 4 branches

  • master - a 64 character directory + file1
  • branch-128 - a 128 character directory + file2
  • branch-192 - a 192 character directory + file3
  • branch-256 - a 256 character directory + file4

I defined the job to use JGit, only execute on windows, and to execute a windows batch command:

dir /s 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

I defined the job to use */branch-128 then ran it. The console log showed the recursive directory as expected.

I defined the job to use */branch-192 then ran it. The console log showed the recursive directory as expected.

I defined the job to use */branch-256 then ran it. The console log shows the recursive directory through the third level, then the DOS command prompt reports "directory name too long" for the 256 character directory name. Apparently the DOS command prompt built-in "dir" does not support 256 character directory names.

Could you try similar steps? I have no problem checking out branches from either JGit or command line git, nor have I heard of anyone else having problems checking out branches from either.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to