mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-10 07:25:50 +01:00
(refs #1051)Don't render README folder
This commit is contained in:
@@ -634,7 +634,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
|||||||
val parentPath = if (path == ".") Nil else path.split("/").toList
|
val parentPath = if (path == ".") Nil else path.split("/").toList
|
||||||
// process README.md or README.markdown
|
// process README.md or README.markdown
|
||||||
val readme = files.find { file =>
|
val readme = files.find { file =>
|
||||||
readmeFiles.contains(file.name.toLowerCase)
|
!file.isDirectory && readmeFiles.contains(file.name.toLowerCase)
|
||||||
}.map { file =>
|
}.map { file =>
|
||||||
val path = (file.name :: parentPath.reverse).reverse
|
val path = (file.name :: parentPath.reverse).reverse
|
||||||
path -> StringUtil.convertFromByteArray(JGitUtil.getContentFromId(
|
path -> StringUtil.convertFromByteArray(JGitUtil.getContentFromId(
|
||||||
|
|||||||
Reference in New Issue
Block a user