Bug 475166 - Prevent re-sync after internal repository changes

Change-Id: Ib1c42d7453ae4005db5c52fa4d014d9fbdbe6ad2
Signed-off-by: Dawid Pakuła <zulus@w3des.net>
diff --git a/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/GitSyncService.java b/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/GitSyncService.java
index 9f64068..2b02cd8 100644
--- a/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/GitSyncService.java
+++ b/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/GitSyncService.java
@@ -444,6 +444,10 @@
 		if (project == null || rl == null) {
 			throw new NullPointerException();
 		}
+		// ignore deltas with filtered resource
+		if (delta != null && getSyncFileFilter(project).shouldIgnore(delta.getResource())) {
+			return;
+		}
 		// Make a copy to protect against the remote location
 		// being changed by another thread.
 		RemoteLocation remoteLoc = new RemoteLocation(rl);