Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How clone a repository containing symlinks(symlink jgit)
How clone a repository containing symlinks [message #1454616] Tue, 28 October 2014 15:35 Go to next message
paolo di tommaso is currently offline paolo di tommasoFriend
Messages: 22
Registered: July 2009
Junior Member
When I clone a repository with the JGit api (v. 3.5.1) symlinks are created as normal files instead of linking their respective targets.

My code looks like the following snippet:
Quote:

Git.cloneRepository()
.setURI(gitRepoUrl)
.setDirectory(localPath)
.call()


What's wrong with it? I'm missing some options?


Cheers,
Paolo
Re: How clone a repository containing symlinks [message #1454629 is a reply to message #1454616] Tue, 28 October 2014 15:52 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 264
Registered: July 2009
Senior Member
on which platform are you trying this

Ciao
Chris
Re: How clone a repository containing symlinks [message #1454634 is a reply to message #1454629] Tue, 28 October 2014 15:56 Go to previous messageGo to next message
paolo di tommaso is currently offline paolo di tommasoFriend
Messages: 22
Registered: July 2009
Junior Member
I'm running Mac OSX (10.9.5)

I think it's not a problem of Mac, because I've double checked with jgit.sh (the embedded version) and it works fine.


best, p
Re: How clone a repository containing symlinks [message #1454690 is a reply to message #1454634] Tue, 28 October 2014 17:09 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 264
Registered: July 2009
Senior Member
how does the classpath of your program look like. JGit can handle symlinks only if the optional org.eclipse.jgit.java7*.jar is on the classpath. jgit.sh has this jar included, but maybe not your program

Ciao
Chris
Re: How clone a repository containing symlinks [message #1455422 is a reply to message #1454690] Wed, 29 October 2014 11:04 Go to previous message
paolo di tommaso is currently offline paolo di tommasoFriend
Messages: 22
Registered: July 2009
Junior Member
I wasn't aware of it. Adding that module it solves the problem.


Thanks,
Paolo
Previous Topic:Is jgit a client or repository?
Next Topic:Websphere Integration Developer 6.1.2 cannot install EGit
Goto Forum:
  


Current Time: Mon Dec 16 05:19:22 GMT 2019

Powered by FUDForum. Page generated in 0.03301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top