make it possible to reference a branch of a local git repository

Reasoning on why this change is wanted can be found
on the "sbt-dev" mailing list,
topic "problem with referencing a local git repository"
This commit is contained in:
Vasya Novikov 2014-06-15 02:14:27 +04:00
parent 47b5790c41
commit 66c9314d20
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ object IO {
{
if (!uri.isAbsolute) return uri; //assertAbsolute(uri)
val str = uri.toASCIIString
val dirStr = if (str.endsWith("/") || uri.getScheme != FileScheme) str else str + "/"
val dirStr = if (str.endsWith("/") || uri.getScheme != FileScheme || uri.getRawFragment != null) str else str + "/"
(new URI(dirStr)).normalize
}
/** Converts the given File to a URI. If the File is relative, the URI is relative, unlike File.toURI*/