Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2018-02-01 14:17:12 -0500
committerThomas Wolf2018-02-01 14:30:29 -0500
commit4d1ce3822848d936087db28543dad3bdd64db49b (patch)
treeab426b1b490fabcaf9eb4210da45594ff43267f3 /org.eclipse.egit.ui.test/src/org/eclipse/egit
parentaa3435bfae23b2638768f613373549b8a163dd66 (diff)
downloadegit-4d1ce3822848d936087db28543dad3bdd64db49b.tar.gz
egit-4d1ce3822848d936087db28543dad3bdd64db49b.tar.xz
egit-4d1ce3822848d936087db28543dad3bdd64db49b.zip
Select "ssh" protocol also for git-style URLs without scheme
Don't use the URI's scheme to select the item but determine the protocol from the URI and then use that protocol's default scheme instead. After all the dropdown is populated with the default schemes. Bug: 530625 Change-Id: Id6b0f165918280405f1196c770e3efb67f19917b Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
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.java12
1 files changed, 12 insertions, 0 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 ed9ed0f25..5479fdfe8 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
@@ -312,4 +312,16 @@ public class GitCloneWizardTest extends GitCloneWizardTestBase {
bot.button("Cancel").click();
}
+ @Test
+ public void gitStyleUriSelectsSshProtocol() throws Exception {
+ importWizard.openWizard();
+
+ RepoPropertiesPage propertiesPage = importWizard
+ .openRepoPropertiesPage();
+
+ propertiesPage.setURI("git@github.com:someone/somerepo.git");
+ propertiesPage.assertSourceParams(null, "github.com",
+ "someone/somerepo.git", "ssh", "", true, "git", "", true,
+ true);
+ }
}

Back to the top