[jbosstools-commits] JBoss Tools SVN: r35714 - trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Oct 17 08:42:20 EDT 2011


Author: adietish
Date: 2011-10-17 08:42:20 -0400 (Mon, 17 Oct 2011)
New Revision: 35714

Modified:
   trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EGitUtils.java
Log:
[JBIDE-9793] pushing the whole repo (skipping ref specs since those seem not to work)

Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EGitUtils.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EGitUtils.java	2011-10-17 11:26:01 UTC (rev 35713)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EGitUtils.java	2011-10-17 12:42:20 UTC (rev 35714)
@@ -104,7 +104,8 @@
 				throw new CoreException(createStatus(null, "Repository \"{0}\" has no remote repository configured",
 						repository.toString()));
 			}
-			createPushOperation(remoteConfig, repository).run(monitor);
+			PushOperation pushOperation = createPushOperation(remoteConfig, repository);
+			pushOperation.run(monitor);
 		} catch (CoreException e) {
 			throw e;
 		} catch (Exception e) {
@@ -153,11 +154,14 @@
 			throws CoreException {
 
 		PushOperationSpecification spec = new PushOperationSpecification();
-		List<URIish> urisToPush = getPushURIs(remoteConfig);
+		List<URIish> pushToUris = getPushURIs(remoteConfig);
 		List<RefSpec> pushRefSpecs = getPushRefSpecs(remoteConfig);
-		addURIRefToPushSpecification(urisToPush, pushRefSpecs, repository, spec);
+		addURIRefToPushSpecification(pushToUris, pushRefSpecs, repository, spec);
 
-		return new PushOperation(repository, spec, false, PUSH_TIMEOUT);
+		// return new PushOperation(repository, spec, false, PUSH_TIMEOUT);
+		// TODO: fix pushoperation to really use the spec (currently seems like
+		// it does not work so we push everything to the remote)
+		return new PushOperation(repository, remoteConfig.getName(), false, PUSH_TIMEOUT);
 	}
 
 	/**



More information about the jbosstools-commits mailing list