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

Bug 331837

Summary: wrong "dirty" decoration on all files
Product: [Technology] EGit Reporter: Nicolas Bros <nicolas.bros>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2010-12-04 10:07:58 EST
I did:
- Import > Projects from Git
- I cloned a project from GitHub
- I created a new project using the new project wizard that pops up automatically during the wizard

In the imported project, all files (apart from the .gitignore file) have a ">" decoration in their label, indicating they are dirty.

If I do "Compare With > Head Revision" or "Compare With > Git Index" on these files, the comparison editor shows that the 2 versions are identical.

With the command line git, I get this:

$ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   .gitignore
#
no changes added to commit (use "git add" and/or "git commit -a")

$ git diff
diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755


I am using:
Eclipse SDK
Version: 3.6.1
Build id: M20100909-0800

I tested this with both Egit 0.9.3 and nightly 0.10.0.201012040919 and I'm getting the same issue.
Comment 1 Nicolas Bros CLA 2010-12-04 10:33:30 EST
This may be related to Bug 307560.

I did a "chmod 644 *", and committed the files (on the command line, EGit wouldn't let me commit since it didn't see any changes).

Now the files don't have a "dirty" decorator anymore.
Comment 2 Stefan Lay CLA 2011-12-07 02:45:47 EST
I think this bug can be closed as Bug 307560 is resolved.