Merge pull request #75 from tanacasino/fix/blob-view

Ensure display file content of specified commit
This commit is contained in:
Naoki Takezoe
2013-08-14 08:49:18 -07:00

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("^/", ""))
}