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

Bug 330019

Summary: eGit ignores .gitignore file in Synch view
Product: [Technology] EGit Reporter: Nick Boldt <nboldt>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: asfbugzilla, dariusz.luksza, dj.houghton, robin
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
screenshot of synch view disrespecting the .gitignore file none

Description Nick Boldt CLA 2010-11-11 11:56:40 EST
Created attachment 182919 [details]
screenshot of synch view disrespecting the .gitignore file

Using Eclipse 3.6 and eGit 0.9.3, I can't get .gitignore file to be respected - see attached screenshot.

---

Meanwhile, commandline, all the .gitignore'd stuff is actually ignored:

$ 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:   target-platform/.gitignore
#
no changes added to commit (use "git add" and/or "git commit -a")

---

Repo being synched is a git-svn checkout of 

http://anonsvn.jboss.org/repos/jbosstools/trunk/build/
Comment 1 Dariusz Luksza CLA 2011-03-05 17:41:32 EST
Nick, can you check it on newest version of EGit. I think that issues with .gitignore was solved since 0.9.3
Comment 2 Dariusz Luksza CLA 2011-06-14 15:45:33 EDT
I think this  should be fixed by now. Could you please check it on 1.0 release?
Comment 3 DJ Houghton CLA 2011-06-29 10:53:16 EDT
Version: 4.1.0
Build id: I20110620-1631
Eclipse EGit 1.1.0.201106282013

I'm seeing this too using the latest e4 build.

I had some JARs in the Sync view and I hit "Ignore" so it created a .gitignore file. At this point I would have expected the JARs to be removed from the view but they weren't. 

When I removed the synchronization from the view and then re-added it, the JARs we not in the view. (as expected)
Comment 4 Jeremy CLA 2011-07-05 21:06:34 EDT
Not sure if I'm seeing *exactly* the same problem or not, or if this is a duplicate of or related to bug 350269 or bug 322454, but I'm seeing similar behavior.

Files added using the "Ignore" menu item or directly edited into .gitignore are not disappearing from the synchronization view until I do a Synchronize Workspace. 


Using EGit 1.0.0.201106090707-r in Eclipse 3.7 (Indigo) build 20110615-0604
Comment 5 Robin Stocker CLA 2013-09-27 12:01:10 EDT

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