summaryrefslogtreecommitdiffstats
path: root/tests/integration/repo_test.go
diff options
context:
space:
mode:
authorNick <nick.guenther@polymtl.ca>2023-04-10 23:00:19 -0400
committerGitHub <noreply@github.com>2023-04-10 23:00:19 -0400
commitef7fd781f5f5f5812a8a947845afac7a1dba4886 (patch)
treed8924179d2a1c3e4cd790c51b63cc1410293e978 /tests/integration/repo_test.go
parentb7b887ba002e9eccf16a575ce93d91189e6ae4fb (diff)
downloadgitea-ef7fd781f5f5f5812a8a947845afac7a1dba4886.tar.gz
gitea-ef7fd781f5f5f5812a8a947845afac7a1dba4886.zip
Avoid recursing into sub-sub-sub-docs folders when looking for READMEs. (#23695)
Fixes a bug introduced in https://github.com/go-gitea/gitea/pull/22177 which allows finding READMEs like docs/docs/docs/.gitea/.github/docs/README.md Fixes https://github.com/go-gitea/gitea/issues/23694
Diffstat (limited to 'tests/integration/repo_test.go')
-rw-r--r--tests/integration/repo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go
index 5ddedfcf36..f03a3b37fd 100644
--- a/tests/integration/repo_test.go
+++ b/tests/integration/repo_test.go
@@ -361,7 +361,7 @@ func TestViewRepoDirectoryReadme(t *testing.T) {
}
missing("sp-ace", "/user2/readme-test/src/branch/sp-ace/")
missing("nested-special", "/user2/readme-test/src/branch/special-subdir-nested/subproject") // the special subdirs should only trigger on the repo root
- // missing("special-subdir-nested", "/user2/readme-test/src/branch/special-subdir-nested/") // This is currently FAILING, due to a bug introduced in https://github.com/go-gitea/gitea/pull/22177
+ missing("special-subdir-nested", "/user2/readme-test/src/branch/special-subdir-nested/")
missing("symlink-loop", "/user2/readme-test/src/branch/symlink-loop/")
}