Author: adietish
Date: 2012-02-17 09:09:23 -0500 (Fri, 17 Feb 2012)
New Revision: 38874
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ConfigureGitSharedProject.java
Log:
[JBIDE-10479] corrected error message when there's a remote with the very same name
but a different git uri
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ConfigureGitSharedProject.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ConfigureGitSharedProject.java 2012-02-17
14:05:07 UTC (rev 38873)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ConfigureGitSharedProject.java 2012-02-17
14:09:23 UTC (rev 38874)
@@ -119,13 +119,13 @@
RemoteConfig config = EGitUtils.getRemoteByName(remoteName, repository);
if (config != null) {
if (EGitUtils.hasRemoteUrl(
- Pattern.compile(RegExUtils.escapeRegex(getApplication().getGitUri())), config)) {
- return;
+ Pattern.compile(RegExUtils.escapeRegex(getApplication().getGitUri())), config)) {
+ return;
}
// we shouldn't get here, the UI should validate the remote name and
// inform about an error in this case
throw new OpenShiftUIException(
- "Could not enable OpenShift on project {0}. There's already a a remote
called {1}.",
+ "Could not enable OpenShift on project {0}. There's already a a remote
called {1} that points to a differnt git repository.",
project.getName(), remoteName);
}
Show replies by date