pombreda / nbgit

Automatically exported from code.google.com/p/nbgit
0 stars 0 forks source link

symbolic links are not handled correctly #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a file (touch some_file)
2. create a symbolic link in a git repository (ln -s some_file some_link)
3. commit it using usual git
4. make some other changes, commit with nbgit

What is the expected output? What do you see instead?
Expected would be that symbolic links stay symbolic links. But nbgit
converts them into plain files.

What versions of NbGit, NetBeans and Java are you using?
On what operating system?
nbgit: current svn
netbeans: 6.7
Java: 1.6.0_15
OS: Linux

Original issue reported on code.google.com by micha.re...@gmail.com on 29 Sep 2009 at 7:50

GoogleCodeExporter commented 9 years ago
Note that the conversion from a symbolic link to a plain file is only done for 
the
git metadata. The symbolic link itself stays a symbolic link. So running "git 
status"
from command line then shows local changes (a typechange).

Original comment by micha.re...@gmail.com on 29 Sep 2009 at 7:53

GoogleCodeExporter commented 9 years ago
Support for symbolic links is also missing in JGit.
It it mainly an issue because Java itself does not
have support for working with symbolic links.

The question is whether and how nbgit could handle
symlinks more gracefully. For example nbgit could
refuse to change such paths.

Original comment by jonas.fonseca on 29 Sep 2009 at 11:47

GoogleCodeExporter commented 9 years ago
Is there any kind of workaround like ignore symlinks?
Because we use many symlinks in our projects and with so many files marked as
changed, I can't use the commit function at all.

Original comment by Lord...@gmail.com on 3 May 2010 at 1:37

GoogleCodeExporter commented 9 years ago
I have the same problems on Netbeans 6.9.1. This issue makes commit from 
Netbeans IDE completely unusable, because it always changes the symlinks.

"Exclude from Commit" is ignored and the symliks are always commited :(

Original comment by jiri.zal...@gmail.com on 7 Oct 2010 at 9:27