Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven R. Brandt2013-11-08 15:38:35 +0000
committerJohn Eblen2013-12-10 18:27:48 +0000
commit9ef6380d00c074091e75a50aa2fa259aa40d0423 (patch)
tree43209e74028f0c9311602c6dd7b04ec9ecb0a48f
parent994d8b21dac7b991b64885bb8cb99f02ef5cf9eb (diff)
downloadorg.eclipse.ptp-9ef6380d00c074091e75a50aa2fa259aa40d0423.tar.gz
org.eclipse.ptp-9ef6380d00c074091e75a50aa2fa259aa40d0423.tar.xz
org.eclipse.ptp-9ef6380d00c074091e75a50aa2fa259aa40d0423.zip
Bug 417230 Synchronization for synchronized project kills Eclipse
Without this simple change, attempting to synchronize a Cactus project launches so many git processes that linux crashes. The only thing that's special about Cactus (with respect to this bug) is its size. Change-Id: I301b8555cc606e4e5eb4f0347b0c1b49d98ecdae Signed-off-by: Steven R. Brandt <sbrandt@cct.lsu.edu>
-rw-r--r--rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/GitSyncService.java2
1 files changed, 1 insertions, 1 deletions
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 94a25fe8d..8687900d2 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
@@ -272,6 +272,7 @@ public class GitSyncService extends AbstractSynchronizeService {
// On first sync, place .gitignore in directories. This is useful for folders that are already present and thus are never
// captured by a resource add or change event. (This can happen for projects converted to sync projects.)
if (!hasBeenSynced) {
+ hasBeenSynced = true;
project.accept(new IResourceVisitor() {
@Override
public boolean visit(IResource resource) throws CoreException {
@@ -292,7 +293,6 @@ public class GitSyncService extends AbstractSynchronizeService {
}
});
}
- hasBeenSynced = true;
// Make a visitor that explores the delta. At the moment, this visitor is responsible for two tasks (the list may grow in
// the future):

Back to the top