Author: adietish
Date: 2011-08-18 09:55:36 -0400 (Thu, 18 Aug 2011)
New Revision: 34048
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EgitUtils.java
Log:
[JBIDE-9513] implemented push test
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-08-18
13:07:28 UTC (rev 34047)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.egit.core/src/org/jboss/ide/eclipse/as/egit/core/EgitUtils.java 2011-08-18
13:55:36 UTC (rev 34048)
@@ -77,11 +77,6 @@
op.execute(monitor);
}
- public static void push(IProject project, IProgressMonitor monitor)
- throws CoreException {
- push(getRepository(project), monitor);
- }
-
/**
* Pushes the given repository to it's configured remote.
*
@@ -103,6 +98,8 @@
}
PushOperation pop = createPushOperation(repository, remoteConfig);
pop.run(monitor);
+ } catch (CoreException e) {
+ throw e;
} catch (Exception e) {
IStatus status = new Status(IStatus.ERROR, EGitCoreActivator.PLUGIN_ID,
NLS.bind("Could not push repo {0}", repository.toString()), e);
Show replies by date