Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2011-04-03 22:53:17 +0000
committerMatthias Sohn2011-04-03 22:53:17 +0000
commit7c7a00edc264b70fca18254351568ce34bfe2bc1 (patch)
tree4adee9e2a16a7af61c787fe96ad36a06288b6382 /org.eclipse.egit.ui.test/src/org/eclipse/egit
parent6213f5c2762e3767ac849867757302d78b8d48c7 (diff)
downloadegit-7c7a00edc264b70fca18254351568ce34bfe2bc1.tar.gz
egit-7c7a00edc264b70fca18254351568ce34bfe2bc1.tar.xz
egit-7c7a00edc264b70fca18254351568ce34bfe2bc1.zip
Do not normalize URIishes
We used to normalize URI's since it seems simple. This however causes inconsistencies to the user and to our tests. Just pass backslashes through and make sure our parser can handle them. Bug: 341062 Depends-on: JGit I2c8e917a086faabcd8749160c2acc9dd05a42838 Change-Id: Idf27a985d8870c6d6c8dddaeda60b5fe62b1f75f Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
index 516218da49..5928e6c1cb 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
@@ -149,22 +149,21 @@ public class GitCloneWizardTest extends GitCloneWizardTestBase {
else
propertiesPage.setURI("file://" + System.getProperty("user.home"));
propertiesPage.assertSourceParams(null, "", System.getProperty(
- "user.home").replace('\\', '/'), "file", "", false, "", "",
+ "user.home"), "file", "", false, "", "",
false, false);
// Local protocol without file: prefix
propertiesPage.setURI(System.getProperty("user.home"));
propertiesPage.assertSourceParams(null, "", System.getProperty(
- "user.home").replace('\\', '/'), "file", "", false, "", "",
+ "user.home"), "file", "", false, "", "",
false, false);
// On windows the use can choose forward or backward slashes, so add
// a case for forward slashes using the non prefixed local protocol.
if (Platform.getOS().equals(Platform.OS_WIN32)) {
- propertiesPage.setURI(System.getProperty("user.home").replace('\\',
- '/'));
+ propertiesPage.setURI(System.getProperty("user.home"));
propertiesPage.assertSourceParams(null, "", System.getProperty(
- "user.home").replace('\\', '/'), "file", "", false, "", "",
+ "user.home"), "file", "", false, "", "",
false, false);
}
bot.button("Cancel").click();

Back to the top