]> source.dussan.org Git - jgit.git/commit
Add support for single-slash URI 03/1703/4
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 6 Oct 2010 15:35:06 +0000 (17:35 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Fri, 8 Oct 2010 21:57:52 +0000 (23:57 +0200)
commitbe2ddff6a72cff3d28b87d038a96194a6e2bd272
tree5ce1fb6dde0b6712667a5aa30677572181cf9b95
parent467f3de0f58b285152465b917efea04475f3f58f
Add support for single-slash URI

In bug 323571 it is mentioned that if you call
'toURI().toURL().toString()' on a java.io.File you cannot pass
that string to jgit as an URIish. Problem is that the passed
URI looks like 'file:/C:/a/b.txt' and that we where expecting
double slashes after scheme':'. This fix adds support for this
single-slash file URLs.

Bug: 323571
Change-Id: I866a76a4fcd0c3b58e0d26a104fc4564e7ba5999
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java