Community
Participate
Working Groups
Build Identifier: 20100617-1415 First, I manually made symlinks in a directory (from cli), then manually add them with git add and finally, make the commit from within eclipse with egit. Team > Commit ... All this worked fine. but when I wanted to switch local branches, I began to have errors with egit. which fails to switch branches. Moreover if I switch to a another branch from cli with git checkout. And go back to my branch, the symlinks are not checkout as symlink with Egit but as files with one line with the name of the file pointed to by the symlink if i use git I got no problme to get back the symlink Reproducible: Always Steps to Reproduce: 1. Create symlink 2. Add and commit them 3. Try to change branches. This will fail 4. Try to checkout the branches with symlink, Egit will make files with one line instead of symlink
I can confirm this behaviour still exists in EGit/JGit 1.2.0.201112221803-r - I've a repository which contains symlinks. Any operation causes symlinks to become regular files: $ git status # On branch xxx/yyy nothing to commit (working directory clean) from within eclipse's git exploring perspective I click commit on repo, and eclipse "detects" bazillion changes, which are symlinks converted to one-line-files, as the original poster said.
It'd be great if eclipse git tooling was usable for any git repository. But as far as I can tell, eclipse git tooling is unusable for repositories with symlinks, because jgit doesn't support symlinks. Symlinks work fine with console git, and so many git repositories do use symlinks, but can't use the eclipse git tooling. I gather that that symlinks may have trouble with at least some windows file systems. That policy is up to the repo maintainer, jgit shouldn't prevent use of repos with symlinks. Whatever java implementation inconveniences used to be there (ant seems to just exec ln -s), should be gone for java7 at least (where there's a createSymbolicLink). +1 for supporting symlinks.
I confirm this problem still exists in Egit 2.1.0 / Eclipse Galileo build id 201000218-1602 / Linux CentOS 5.6. Symlinks manually commited using the cli are checked-out as regular files when using the eclipse/egit gui. So +1 for supporting symlinks
JGit does not yet support symlinks *** This bug has been marked as a duplicate of bug 354367 ***