Bug 334137 - EGit always considers symbolic links as dirty and doesn't compare them correctly
Summary: EGit always considers symbolic links as dirty and doesn't compare them correctly
Status: CLOSED DUPLICATE of bug 354367
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Linux
: P3 normal with 9 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 12:05 EST by Yaron Kaplan CLA
Modified: 2013-08-29 03:17 EDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***