Show the correct name of the readme file (instead of showing always README.md).

This commit is contained in:
Tobias Roeser
2014-02-26 12:09:14 +01:00
parent 1f71619b6b
commit 2c14dfb781
2 changed files with 4 additions and 4 deletions

View File

@@ -276,7 +276,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
val readme = files.find { file =>
readmeFiles.contains(file.name.toLowerCase)
}.map { file =>
StringUtil.convertFromByteArray(JGitUtil.getContent(Git.open(getRepositoryDir(repository.owner, repository.name)), file.id, true).get)
file -> StringUtil.convertFromByteArray(JGitUtil.getContent(Git.open(getRepositoryDir(repository.owner, repository.name)), file.id, true).get)
}
repo.html.files(revision, repository,