Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334137

Summary: EGit always considers symbolic links as dirty and doesn't compare them correctly
Product: [Technology] EGit Reporter: Yaron Kaplan <retropier>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: blask, eclipse, enzo.congiu, joshualross, klemens, marcin.slusarz, matthias.sohn, retropier, sasa.djugum, thomas
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Yaron Kaplan CLA 2011-01-12 12:05:44 EST
The repository I work with contains symbolic links to file. EGit always thinks they are dirty, and also doesn't compare them correctly.

To reproduce:

Go to a folder which is under git version control.
Create test.txt. Create link to test.txt called test2.txt  (ln -s test.txt test2.txt)

Add the 2 files to the repository (git add test.txt test2.txt)

Open the same folder in Eclipse (For example in the PHP explorer)

Result:
You will see that Eclipse will treat test2.txt as dirty (it'll be prefixed with '>').  

Also, comparing that file with the HEAD revision will cause the compare window to think that the contents of this file in the HEAD revision is just the filename (it will not show the actual content from the HEAD revision).



EGit version: 0.10.1. Eclipse version: 3.5.2
Comment 1 Joshua Ross CLA 2011-07-06 15:18:06 EDT
I am having the same issue with EGit(1.0.0.201106090707).  My symlinked files are marked as dirty and when I do a compare with HEAD I see the following diff:


local
-------------------
!<symlink>ÿþa


HEAD
-------------------
app.yaml
Comment 2 Sebastian Blask CLA 2012-07-26 09:09:51 EDT
I found a workaround for this problem, you can add */path/to/your/link/* (didn't work without wildcards) to Preferences -> Team -> Ignored Resources and it won't be shown in Synchronize view any more.
Comment 3 Klemens Ullmann-Marx CLA 2012-10-27 07:43:43 EDT
Hello, I just wanted to add, that this is really serious from my point of view.

I'm just investigating on how to migrate a large symfony php project (ullright) from svn to git. eGit would play an important part, because the frontend development parts are performed by "not-so-technical" people like graphical artists and webdesigners. Git command line is not a real option for them.

So sadly, this symlink bug is a real showstopper!
Comment 4 Sasa Djugum CLA 2012-10-28 02:48:32 EDT
We have exactly the same problem. Repos we work on have a lot of symbolic links, and they are always shown as dirty as explained below. Sadly this makes Egit almost unusable for us.
Comment 5 Enzo Mattia Congiu CLA 2012-11-05 13:22:01 EST
Same as below. Without correct symbolic link management is almost unusable for us too.
Regards
Comment 6 Sasa Djugum CLA 2012-11-05 13:25:00 EST
Well, actually I am getting used to using it :-)
It is just bad for observing dirty files. Staged files are shown fine in Staging View. Still it would be very nice if this would be fixed.
Comment 7 Matthias Sohn CLA 2012-11-06 18:06:25 EST

*** This bug has been marked as a duplicate of bug 354367 ***