Ensure display file content of specified commit

This commit is contained in:
Tomofumi Tanaka
2013-08-15 00:21:55 +09:00
parent 6c75a29cb0
commit ca86076a02

View File

@@ -213,7 +213,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
case branch if(path == branch || path.startsWith(branch + "/")) => branch
} orElse repository.tags.collectFirst {
case tag if(path == tag.name || path.startsWith(tag.name + "/")) => tag.name
} orElse Some(path) get
} orElse Some(path.split("/")(0)) get
(id, path.substring(id.length).replaceFirst("^/", ""))
}