diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2010-10-06 15:21:01 +0200 |
---|---|---|
committer | Christian Halstrick <christian.halstrick@sap.com> | 2010-10-08 06:44:20 +0200 |
commit | cee08c30273c18d0b36ee3659fbca1b3b8451d24 (patch) | |
tree | afa3ac59d84c5108bf25cac23b134845564fa6de | |
parent | a1b0ca1807c78d1b715bb68f8f8fa08b797bd4a5 (diff) | |
download | jgit-cee08c30273c18d0b36ee3659fbca1b3b8451d24.tar.gz jgit-cee08c30273c18d0b36ee3659fbca1b3b8451d24.zip |
Fix URIish tests to contain a hostname for git protocol
URIs for the git protocol have to have a hostname.
(see http://www.kernel.org/pub/software/scm/git/docs
/git-clone.html#_git_urls_a_id_urls_a) Some tests tested
URIs like git:/abc.git which is not allowed. Fixed this.
Change-Id: Ia3b8b681ad6592f03b090a874a6e91068a8301fe
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java index 6aef874e20..9c4c11cd25 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java @@ -356,7 +356,8 @@ public class URIishTest extends TestCase { public void testGetValidSlashHumanishName() throws IllegalArgumentException, URISyntaxException { - String humanishName = new URIish(GIT_SCHEME + "abc/").getHumanishName(); + String humanishName = new URIish(GIT_SCHEME + "host/abc/") + .getHumanishName(); assertEquals("abc", humanishName); } @@ -394,7 +395,7 @@ public class URIishTest extends TestCase { public void testGetValidDotGitSlashHumanishName() throws IllegalArgumentException, URISyntaxException { - String humanishName = new URIish(GIT_SCHEME + "abc.git/") + String humanishName = new URIish(GIT_SCHEME + "host.xy/abc.git/") .getHumanishName(); assertEquals("abc", humanishName); } |