mirror of https://github.com/sbt/sbt.git
Merge pull request #1409 from vn971/0.13
make it possible to reference a branch of a local git repository
This commit is contained in:
commit
172e091d9e
|
|
@ -832,7 +832,7 @@ object IO {
|
||||||
{
|
{
|
||||||
if (!uri.isAbsolute) return uri; //assertAbsolute(uri)
|
if (!uri.isAbsolute) return uri; //assertAbsolute(uri)
|
||||||
val str = uri.toASCIIString
|
val str = uri.toASCIIString
|
||||||
val dirStr = if (str.endsWith("/") || uri.getScheme != FileScheme) str else str + "/"
|
val dirStr = if (str.endsWith("/") || uri.getScheme != FileScheme || Option(uri.getRawFragment).isDefined) str else str + "/"
|
||||||
(new URI(dirStr)).normalize
|
(new URI(dirStr)).normalize
|
||||||
}
|
}
|
||||||
/** Converts the given File to a URI. If the File is relative, the URI is relative, unlike File.toURI*/
|
/** Converts the given File to a URI. If the File is relative, the URI is relative, unlike File.toURI*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue